From 51b16fcad750ea87de0b590bdb819c1bb427dcdc Mon Sep 17 00:00:00 2001 From: Louis Dalibard Date: Tue, 24 Dec 2024 17:00:19 +0100 Subject: [PATCH] yes --- palette-generator/Stylix/Palette.hs | 40 ++++++++++++++--------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/palette-generator/Stylix/Palette.hs b/palette-generator/Stylix/Palette.hs index 1f9f568..4b97338 100644 --- a/palette-generator/Stylix/Palette.hs +++ b/palette-generator/Stylix/Palette.hs @@ -84,16 +84,16 @@ instance Species (String,Float,Float, Image PixelRGB8) (V.Vector LAB) where lightScheme = lightnessError (V.fromList [90, 70, 55, 35, 25, 10, 5, 5]) 40 - // 0.2, 0.133,0.178,0.85,0.93,0.88,1.0,1.0 for 0.1 scale - // f(x) = ax+b for multiplier (light) - // 0.889, 0.111 - // 0.963, 0.037 - // 0.913, 0.087 - // 0.167, 0.833 - // 0.078, 0.922 - // 0.133, 0.087 - // 0.0, 1.0 - // 0.0, 1.0 + -- 0.2, 0.133,0.178,0.85,0.93,0.88,1.0,1.0 for 0.1 scale + -- f(x) = ax+b for multiplier (light) + -- 0.889, 0.111 + -- 0.963, 0.037 + -- 0.913, 0.087 + -- 0.167, 0.833 + -- 0.078, 0.922 + -- 0.133, 0.087 + -- 0.0, 1.0 + -- 0.0, 1.0 {- For dark themes, the background is dark and the text is bright. @@ -102,13 +102,13 @@ instance Species (String,Float,Float, Image PixelRGB8) (V.Vector LAB) where darkScheme = lightnessError (V.fromList [10, 30, 45, 65, 75, 90, 95, 95]) 60 - // 0.2, 0.133,0.178,0.85,0.93,0.88,1.0,1.0 for 0.1 scale - // f(x) = ax+b for multiplier (dark) - // 0.889, 0.111 - // 0.963, 0.037 - // 0.913, 0.087 - // 0.167, 0.833 - // 0.078, 0.922 - // 0.133, 0.087 - // 0.0, 1.0 - // 0.0, 1.0 + -- 0.2, 0.133,0.178,0.85,0.93,0.88,1.0,1.0 for 0.1 scale + -- f(x) = ax+b for multiplier (dark) + -- 0.889, 0.111 + -- 0.963, 0.037 + -- 0.913, 0.087 + -- 0.167, 0.833 + -- 0.078, 0.922 + -- 0.133, 0.087 + -- 0.0, 1.0 + -- 0.0, 1.0