Order base08 to base0F by hue

This commit is contained in:
Daniel Thwaites 2021-10-17 19:48:03 +01:00
parent 6c806290e4
commit 92f63a54ff
No known key found for this signature in database
GPG key ID: D8AFC4BF05670F9D

View file

@ -78,8 +78,11 @@ selectColours image = zip names palette
primaryScale = [HSV h s (v / 8) | v <- [1..8]]
where (HSV h s _) = head shortlist
secondaryScale :: [HSV Float]
secondaryScale = sortOn (\(HSV h _ _) -> h) $ tail shortlist
palette :: [HSV Float]
palette = primaryScale ++ tail shortlist
palette = primaryScale ++ secondaryScale
unpackImage :: DynamicImage -> [RGB Float]
unpackImage image = do