Skip to content

Function: hslToRgb() ​

ts
function hslToRgb(__namedParameters): RgbColor;

Converts an HslColor object to an RgbColor object.

Parameters ​

ParameterType
__namedParametersHslColor

Returns ​

RgbColor

Example ​

ts
hslToRgb({ h: 24, s: 100, l: 50 }) // => { r: 255, g: 102, b: 0 }

Since ​

1.0.0

Released under the MIT License.