rgbToHsv
converts an RGB color code to the HSV format
array rgbToHsv(number r,number g,number b);
| r | number | the Red color value |
| g | number | the Green color value |
| b | number | the Blue color value |
| array | an array with HUE SATURATION BRIGHTNESS values |
Example
webix.color.rgbToHsv(115,116,133);
// -> [236.66666666666669, 0.13533834586466165, 0.5215686274509804]
See also
Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support,
connect with other developers, and share your feedback there.