fromHsl

fun fromHsl(hue: Double, saturation: Double, luminance: Double): Color(source)

Constructs a new Color from hue, saturation, and luminance.

Parameters

hue

values outside the range 0.0..1.0 are wrapped (e.g. 1.5 -> 0.5 and -1.25 -> 0.75).

saturation

values outside the range 0.0..1.0 are clamped (e.g. 1.5 -> 1.0 and -100 -> 0.0).

luminance

values outside the range 0.0..1.0 are clamped (e.g. 1.5 -> 1.0 and -100 -> 0.0).