toHSV
Returns the color in HSV representation. As HSV object, it has the following properties:
h
-- hue, an integer between 0 and 360s
-- saturation, floating point between 0 and 1v
-- value, floating point between 0 and 1a
-- alpha, floating point between 0 and 1
This does not modify the current object, it creates a new one instead.
Returns
Object
An object with h, s, v and a fields.
Example
<script>
var color = kendo.parseColor("#ff0000");
var hsvColor = color.toHSV();
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(hsvColor); // logs {h: 0, s: 1, v: 1, a: 1}
</script>
In this article