toHSV

Returns the color in HSV representation. As HSV object, it has the following properties:

  • h -- hue, an integer between 0 and 360
  • s -- saturation, floating point between 0 and 1
  • v -- value, floating point between 0 and 1
  • a -- 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
toHSV
Not finding the help you need?
Contact Support