From 411b8bd6d81f2106a069e2071cff0b4d638ff6e0 Mon Sep 17 00:00:00 2001 From: Louis Dalibard Date: Tue, 24 Dec 2024 17:14:03 +0100 Subject: [PATCH] yes --- palette-generator/Stylix/Palette.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/palette-generator/Stylix/Palette.hs b/palette-generator/Stylix/Palette.hs index 2d46e86..d6d3794 100644 --- a/palette-generator/Stylix/Palette.hs +++ b/palette-generator/Stylix/Palette.hs @@ -11,8 +11,8 @@ import qualified Data.Vector as V import System.Random ( randomRIO ) -- Adjust value according to coefficients -adjustValue :: Float -> Float-> Float -> Float -> Int -adjustValue v a b x = round (v*(a*x+b)) +adjustValue :: Double -> Double-> Double -> Double -> Double +adjustValue v a b x = v*(a*x+b) -- | Extract the primary scale from a pallete. primary :: V.Vector a -> V.Vector a