Color.from_hls

classmethod Color.from_hls(h, l, s)

Construct a color from Hue, Luminance, and Saturation.

Parameters
  • h (float) – Hue.

  • l (float) – Luminance.

  • s (float) – Saturation.

Returns

compas.colors.Color

See also

https

//en.wikipedia.org/wiki/HSL_and_HSV