Skip to content
  • Leon Arnott's avatar
    Added (rgb:) and (hsl:) colour constructors, and colour properties. · 1b6c41733c5f
    Leon Arnott authored
     * The (rgb:) and (hsl:) macros behave like the CSS colour functions, accepting three numbers to produce a new colour value. I'd like to add (rgba:) and (hsla:) as well at some point.
    
     * Colour values now have r, g, b, h, s and l properties, which can be used to extract components for use in further (hsl:) or (rgb:) calls. The h, s and l properties implicitly convert the colour's internal RGB representation into HSL, but should be accurate.
    1b6c41733c5f