2module Graphics.Color (rgba,rgb,hsva,hsv,
12data Color = Color Int Int Int Float
14-- Create RGB colors with an alpha component for transparency. The alpha component is specified with numbers between 0 and 1.
15rgba : Int -> Int -> Int -> Float -> Color
18-- Create RGB colors from numbers between 0 and 255 inclusive.
19rgb : Int -> Int -> Int -> Color
20rgb r g b = Color r g b 1
30yellow = Color 255 255 0 1
32cyan = Color 0 255 255 1
34magenta = Color 255 0 255 1
39white = Color 255 255 255 1
42gray = Color 128 128 128 1
44grey = Color 128 128 128 1
47maroon = Color 128 0 0 1
51green = Color 0 128 0 1
54teal = Color 0 128 128 1
56purple = Color 128 0 128 1
59violet = Color 238 130 238 1
61forestGreen = Color 34 139 34 1
63-- Produce a “complementary color”.
64-- The two colors will accent each other.
65complement : Color -> Color
67-- Create HSV colors with an alpha component for transparency.
68-- The alpha component is specified with numbers between 0 and 1.
69hsva : Int -> Float -> Float -> Float -> Color
71-- Create HSV colors. HSV stands for hue-saturation-value.
73-- Hue is a degree from 0 to 360 representing a color wheel: red at 0°,
74-- green at 120°, blue at 240°, and red again at 360°.
75-- This makes it easy to cycle through colors and compute color complements,
76-- triads, tetrads, etc.
78-- Saturation is a number between 1 and 0 where lowering this number makes
79-- your color more grey. This can help you tone a color down.
81-- Value is also a number between 1 and 0. Lowering this number makes your
84-- Look up the “HSV cylinder” for more information.
85hsv : Int -> Float -> Float -> Color
88 = Linear (Float,Float) (Float,Float) [(Float,Color)]
89 | Radial (Float,Float) Float (Float,Float) Float [(Float,Color)]
91linear : (Number,Number) -> (Number,Number) -> [(Float,Color)] -> Gradient
93radial : (Number,Number) -> Number ->
94 (Number,Number) -> Number -> [(Float,Color)] -> Gradient
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list