hsl2rgb(hue: number, saturation: number, lightness: number): Color
Convert HSL color (all values in 0.0 - 1.0 range) to RGB color.
param
hue- The hue value.
param
saturation- The saturation value.
param
lightness- The lightness value.
// animate rainbow color onUpdate("rainbow", (obj) => { obj.color = hsl2rgb(wave(0, 1, time()), 0.6, 0.6); });
returns
The color.
since
v2000.1