aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/ExtractColors.ts
diff options
context:
space:
mode:
authorA.J. Shulman <Shulman.aj@gmail.com>2024-09-05 11:40:24 -0400
committerA.J. Shulman <Shulman.aj@gmail.com>2024-09-05 11:40:24 -0400
commitc1053475810a1b1b3a9963c3f1ef0b1a9509d222 (patch)
tree41da9f26592ba7f189f8d00536435182e38272da /src/client/views/ExtractColors.ts
parent785e55141cab178a761080f5c99384bb19855969 (diff)
parent9014cc474a039f0daef6cc0ee2011329da7703ac (diff)
merged with master
Diffstat (limited to 'src/client/views/ExtractColors.ts')
-rw-r--r--src/client/views/ExtractColors.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/ExtractColors.ts b/src/client/views/ExtractColors.ts
index f6928c52a..eee1d3a04 100644
--- a/src/client/views/ExtractColors.ts
+++ b/src/client/views/ExtractColors.ts
@@ -126,7 +126,7 @@ export class ExtractColors {
let hue = 0;
let saturation = 0;
- let lightness = intensity;
+ const lightness = intensity;
if (area !== 0) {
saturation = area / (1 - Math.abs(2 * intensity - 1));