on 784ada6 help sign in
elk/core/Color.elm
22 lines 495 B history raw
2module Graphics.Color
3 (rgba,rgb
4 ,red,green,blue
5 ,yellow,cyan,magenta
6 ,black,white,gray,grey) where
8data Color = Color Int Int Int Float
10rgba = Color
11rgb r g b = Color r g b 1
13red = Color 255 0 0 1
14green = Color 0 255 0 1
15blue = Color 0 0 255 1
16yellow = Color 255 255 0 1
17cyan = Color 0 255 255 1
18magenta = Color 255 0 255 1
19black = Color 0 0 0 1
20white = Color 255 255 255 1
21gray = Color 128 128 128 1
22grey = Color 128 128 128 1