Portability | non-portable |
---|---|
Stability | provisional |
Maintainer | Fumiaki Kinsohita <fumiexcel@gmail.com> |
Safe Haskell | Safe-Inferred |
Colors and its operations
- data Color = Color Float Float Float Float
- transparent :: Float -> Color -> Color
- lighten :: Float -> Color -> Color
- darken :: Float -> Color -> Color
- intermediate :: Color -> Color -> Color
- halfD :: Color -> Color
- halfB :: Color -> Color
- white :: Color
- black :: Color
- red :: Color
- green :: Color
- blue :: Color
- yellow :: Color
- cyan :: Color
- magenta :: Color
The type
A color that has red, green, blue, alpha as its component.
Color operations
transparent :: Float -> Color -> ColorSource
intermediate :: Color -> Color -> ColorSource
An intermediate between the given colors.
Deprecated
Deprecated: use darken 0.5 instead
An intermediate between the black and the given color
Deprecated: use lighten 0.5 instead
An intermediate between the white and the given color