aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2025-06-06 16:38:56 +0200
committerGuilhem Moulin <guilhem@fripost.org>2025-06-07 18:47:05 +0200
commit49d11dbd7a3805d157fd43eca0a928868fbc6e41 (patch)
tree2079e6b8f3241b2ee8951de666b5ca2869f0548e
parent299077ad552617b564392c1175c4fd5e38b11421 (diff)
Make stroke thinner for layers where the typical geometry is small.
-rw-r--r--main.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/main.js b/main.js
index 4113d6f..4211896 100644
--- a/main.js
+++ b/main.js
@@ -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],
}),
});