Advertisement
Guest User

Untitled

a guest
Nov 29th, 2015
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. rgbColor :: (Int, Int, Int) -> [Char]
  2. rgbColor x
  3. | x == (0, 0, 0) = "black"
  4. | x == (255, 255, 255) = "white
  5. | x == (255, 0, 0) = "red"
  6. | x == (0, 255, 0) = "green"
  7. | x == (0, 0, 255) = "blue"
  8. | otherwise = "other color"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement