used internally.
Construct a new Color instance from an rgba color.
An RGBA color object with keys for Red (0-255), Green (0-255), Blue (0-255) and optionally Alpha (0-1)
Construct a new Color instance from an hsla color.
An HSLA color object with keys for Hue (0-360), Saturation (0-100), Lightness (0-100) and optionally Alpha (0-1)
Construct a new Color instance from a hex color.
A hex color in short or long form, a string starting with #
followed by either 3, 4, 6 or 8 hex chars.
Static
fromConstruct a new Color instance from an rgba color.
An RGBA color object with keys for Red (0-255), Green (0-255), Blue (0-255) and optionally Alpha (0-1)
Construct a new Color instance from an hsla color.
An HSLA color object with keys for Hue (0-360), Saturation (0-100), Lightness (0-100) and optionally Alpha (0-1)
Construct a new Color instance from a hex color.
A hex color in short or long form, a string starting with #
followed by either 3, 4, 6 or 8 hex chars.
Helper class to convert or pass around colors.