aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/ExtractColors.ts
diff options
context:
space:
mode:
authorNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2024-10-01 03:58:47 -0400
committerNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2024-10-01 03:58:47 -0400
commit6d35629dd8f997208130981aac1daf36bc83b134 (patch)
tree7b7e3baac15e5f7b4fcb48d90372c48d4552ae4c /src/client/views/ExtractColors.ts
parentcf45abf8ada938caddb226c825166d4acdee3086 (diff)
parentba01c7376ed4a2b817a26a430faf4041524aef35 (diff)
Merge branch 'master' of https://github.com/brown-dash/Dash-Web into nathan-starter
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));