This module provides a simple way of describing colors as RGB with alpha transparency, based on this simple data structure:
type alias Color =
{ red : Int, green : Int, blue : Int, alpha : Float }The intention here is to provide a minimal and convenient representation of color for rendering purposes.
Builds an RGBA color from its RGB components at 100% opacity.
Builds an RGBA color from all of its components.
Builds and RGBA color from its hue, saturation and lighness (HSL) representation at 100% opacity.
Builds and RGBA color from its hue, saturation, lighness and alpha (HSLA) representation.
Makes a grey level from 0 to 1.
Makes a grey level from 0 to 1.
Forms the complement of a color.
Converts the RGBA color to its RGBA representation - that is, does nothing.
Converts the RGBA color to its HSLA representation.
A description of a color as computers see them.