diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2025-06-06 16:38:56 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2025-06-07 18:47:05 +0200 |
commit | 49d11dbd7a3805d157fd43eca0a928868fbc6e41 (patch) | |
tree | 2079e6b8f3241b2ee8951de666b5ca2869f0548e | |
parent | 299077ad552617b564392c1175c4fd5e38b11421 (diff) |
Make stroke thinner for layers where the typical geometry is small.
-rw-r--r-- | main.js | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -2285,7 +2285,7 @@ const layers = { color: context.createPattern(patternCanvas, 'repeat'), }), stroke: width === 0 ? undefined : new Stroke({ - width: z < 2 ? 1 : z < 4 ? 2 : z <= 5 ? 4 : 8, + width: z < 4 ? .5 : z <= 5 ? 1 : 2, color: [134, 90, 71, 1], }), }); @@ -2338,7 +2338,7 @@ const layers = { color: context.createPattern(patternCanvas, 'repeat'), }), stroke: width === 0 ? undefined : new Stroke({ - width: z < 2 ? 1 : z < 4 ? 2 : z <= 5 ? 4 : 8, + width: z < 4 ? .5 : z <= 5 ? 1 : 2, color: [255, 95, 0, 1], }), }); @@ -2848,7 +2848,7 @@ const layers = { color: context.createPattern(patternCanvas, 'repeat'), }), stroke: width === 0 ? undefined : new Stroke({ - width: z < 2 ? 1 : z < 4 ? 2 : z <= 5 ? 4 : 8, + width: z < 4 ? .5 : z <= 5 ? 1 : 2, color: [255, 0, 197, 1], }), }); @@ -2902,7 +2902,7 @@ const layers = { color: context.createPattern(patternCanvas, 'repeat'), }), stroke: width === 0 ? undefined : new Stroke({ - width: z < 2 ? 1 : z < 4 ? 2 : z <= 5 ? 4 : 8, + width: z < 4 ? .5 : z <= 5 ? 1 : 2, color: [255, 0, 197, 1], }), }); |