You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 line
267B

  1. module ColorWheel.RGBPurifier where
  2. import ColorWheel.RGBDefinition
  3. type FlooredRGB = [Int]
  4. flooredRgb :: RGB -> FlooredRGB
  5. flooredRgb rgb = do
  6. let red = floor $ r rgb
  7. let green = floor $ g rgb
  8. let blue = floor $ b rgb
  9. [red,green,blue]