From 1b9987ce89c5fac5539b227035149cdc62d3a109 Mon Sep 17 00:00:00 2001 From: Luca Milanese Date: Thu, 17 Feb 2022 16:59:39 +0100 Subject: [PATCH] fix: set default svg output to fill color (#1115) --- src/@utils/SvgWaves.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/@utils/SvgWaves.ts b/src/@utils/SvgWaves.ts index 2d643d042..217ddbeb5 100644 --- a/src/@utils/SvgWaves.ts +++ b/src/@utils/SvgWaves.ts @@ -41,6 +41,7 @@ export class SvgWaves { * meaning low character count. * - width & height: default is 2 digits max (99) * - color pink is selected per default + * - set coloring to fill or stroke (fill is selected per default) * - randomly decide if fill or stroke coloring should be used * - create 4 layers with 4 - 5 points per layers * -> results in random looking, yet small enough svgs @@ -53,7 +54,7 @@ export class SvgWaves { width: 99, height: 99, color: WaveColors.Pink, - fill: Math.random() < 0.5, // random true or false + fill: true, layerCount: 4, pointsPerLayer: randomIntFromInterval(3, 4), variance: Math.random() * 0.2 + 0.5, // 0.5 - 0.7