4data Color = Color Int Int Int Float
6-- Create RGB colors with an alpha component for transparency.
7-- The alpha component is specified with numbers between 0 and 1.
8rgba : Int -> Int -> Int -> Float -> Color
11-- Create RGB colors from numbers between 0 and 255 inclusive.
12rgb : Int -> Int -> Int -> Color
13rgb r g b = Color r g b 1
23yellow = Color 255 255 0 1
25cyan = Color 0 255 255 1
27magenta = Color 255 0 255 1
32white = Color 255 255 255 1
35gray = Color 128 128 128 1
37grey = Color 128 128 128 1
40maroon = Color 128 0 0 1
44green = Color 0 128 0 1
47teal = Color 0 128 128 1
49purple = Color 128 0 128 1
52violet = Color 238 130 238 1
54forestGreen = Color 34 139 34 1
56-- Produce a “complementary color”.
57-- The two colors will accent each other.
58complement : Color -> Color
60-- Create HSV colors with an alpha component for transparency.
61-- The alpha component is specified with numbers between 0 and 1.
62hsva : Int -> Float -> Float -> Float -> Color
64-- Create HSV colors. HSV stands for hue-saturation-value.
66-- Hue is a degree from 0 to 360 representing a color wheel: red at 0°,
67-- green at 120°, blue at 240°, and red again at 360°.
68-- This makes it easy to cycle through colors and compute color complements,
69-- triads, tetrads, etc.
71-- Saturation is a number between 1 and 0 where lowering this number makes
72-- your color more grey. This can help you tone a color down.
74-- Value is also a number between 1 and 0. Lowering this number makes your
77-- Look up the “HSV cylinder” for more information.
78hsv : Int -> Float -> Float -> Color
81 = Linear (Float,Float) (Float,Float) [(Float,Color)]
82 | Radial (Float,Float) Float (Float,Float) Float [(Float,Color)]
84linear : (Number a, Number a) ->
85 (Number a, Number a) -> [(Float,Color)] -> Gradient
87radial : (Number a,Number a) -> Number a ->
88 (Number a,Number a) -> Number a -> [(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