25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
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]