This commit is contained in:
Louis Dalibard 2024-12-24 17:07:32 +01:00
parent 2674f130a3
commit b25345f3fd

View File

@ -11,8 +11,8 @@ import qualified Data.Vector as V
import System.Random ( randomRIO )
-- Adjust value according to coefficients
adjustValue :: (Int, Float, Float, Float) -> Int
adjustValue (V,a,b,x) = V*(a*x+b)
adjustValue :: Int -> Float-> Float -> Float -> Int
adjustValue v a b x = v*(a*x+b)
-- | Extract the primary scale from a pallete.
primary :: V.Vector a -> V.Vector a