Function resolve

Parses a string representation of colour, or a Rgb/Hsl object. If the string starts with '--' it's assumed to be a CSS variable

See also resolveToString to resolve to a CSS colour string.

  • Parameters

    • colour: Colourish

      Colour to resolve

    • safe: boolean = false

    Returns Color

    Color.js Color object