hsl2rgb - chung-leong/qb GitHub Wiki

hsl2rgb - Convert color values from HSL color-space to RGB

float[3] hsl2rgb( float[3] $pixel )

float[4] hsl2rgb( float[4] $pixel )

hsl2rgb() converts an array containing Hue-Saturation-Lightness values to corresponding RGB values. It is the inverse of rgb2hsl().

Parameters:

pixel - The HSL values to convert. It can be a single three or four-element array or an array of such arrays.

Return Value:

An array containing RGB values. The return value will have the same length as pixel.

Version

1.4 and above.