hsv2rgb - chung-leong/qb GitHub Wiki

hsv2rgb - Convert color values from HSV color-space to RGB

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

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

hsv2rgb() converts an array containing Hue-Saturation-Value values to corresponding RGB values. It is the inverse of rgb2hsv().

Parameters:

pixel - The HSV 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.