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,