diff --git a/palette-generator/Stylix/Palette.hs b/palette-generator/Stylix/Palette.hs index 93e3881..cadf8e7 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 :: LAB(lightness) -> Float-> Float -> Float -> Int -adjustValue v a b x = v*(a*x+b) +adjustValue :: Float -> Float-> Float -> Float -> Int +adjustValue v a b x = round v*(a*x+b) -- | Extract the primary scale from a pallete. primary :: V.Vector a -> V.Vector a