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