From 3eb931555cc9beacf2cea75228b4e591e7bf22bf Mon Sep 17 00:00:00 2001 From: Angel Wang Date: Sun, 21 Jun 2026 12:50:13 -0600 Subject: [PATCH] fix: don't scale values to 100 because we're not doing floating point arithmetic anymore --- analyze/analysis.ts | 4 ++-- apply/application.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/analyze/analysis.ts b/analyze/analysis.ts index 515afab..1807750 100755 --- a/analyze/analysis.ts +++ b/analyze/analysis.ts @@ -68,8 +68,8 @@ export async function analyzeImages(imageDir: string, analysisOutput: ImageAnaly console.log( `Got oklch(${dominantColour}) as dominant colour of ${image.name}!`, ) - const lightness = Number(dominantColour[0]) * 100 - const chroma = Number(dominantColour[1]) * 100 + const lightness = Number(dominantColour[0]) + const chroma = Number(dominantColour[1]) const hue = Number(dominantColour[2]) analysisOutput.files.push({ path: path, oklch: [hue, chroma, lightness] }) diff --git a/apply/application.ts b/apply/application.ts index 6de0cdf..5f245ec 100644 --- a/apply/application.ts +++ b/apply/application.ts @@ -16,11 +16,11 @@ export const defaultConfig: ApplicationConfig = { weatherModel: "best_match", lightnessRange: { start: 0, - end: 100, + end: 1, }, chromaRange: { start: 0, - end: 100, + end: 1, }, hueRange: { start: 0, -- 2.51.2