rgb
A colour from red, green and blue channels, each 0-255 (out-of-range values are clamped). The result is colour text such as "#ff1124", usable anywhere a colour is: draw(), penColor(), plot(), ...
r(number) --g(number) --b(number) --
A colour from red, green and blue channels, each 0-255 (out-of-range values are clamped). The result is colour text such as "#ff1124", usable anywhere a colour is: draw(), penColor(), plot(), ...
r (number) -- g (number) -- b (number) -- rgb() with an opacity a from 0 (transparent) to 1 (opaque); the result is "#rrggbbaa".
r (number) -- g (number) -- b (number) -- a (number) -- opacity, 0 to 1A colour from hue (degrees round the colour wheel: 0 red, 120 green, 240 blue), saturation and lightness (both in percent, 0-100) -- CSS hsl(h, s%, l%).
h (number) -- degreess (number) -- percentl (number) -- percenthsl() with an opacity a from 0 to 1.
h (number) -- s (number) -- l (number) -- a (number) -- opacity, 0 to 1The colour t of the way from c1 (t = 0) to c2 (t = 1), mixed in sRGB like CSS color-mix().
c1 (colour) -- c2 (colour) -- t (number) -- 0 to 1The colour with its HSL lightness raised by p percentage points.
c (colour) -- p (number) -- percentage pointsThe colour with its HSL lightness lowered by p percentage points.
c (colour) -- p (number) -- percentage pointsThe same colour with opacity a (0 transparent, 1 opaque).
c (colour) -- a (number) -- opacity, 0 to 1A list of n evenly spaced hues (full saturation, lightness 50%), starting at red.
n (number) --