rgbToHsv

converts an RGB color code to the HSV format

array rgbToHsv(number r,number g,number b);

Parameters

rnumberthe Red color value
gnumberthe Green color value
bnumberthe Blue color value

Returns

arrayan array with HUE SATURATION BRIGHTNESS values

Example

webix.color.rgbToHsv(115,116,133);
// -> [236.66666666666669, 0.13533834586466165, 0.5215686274509804]

See also
Back to top