fromHSV

Creates a new color object from the hsva channels in the 0..1 range.

Parameters

hue Number

The hue channel of the color, in the range from 0 to 1.

saturation Number

The saturation channel of the color, in the range from 0 to 1.

value Number

The value channel of the color, in the range from 0 to 1.

alpha Number (optional)

The alpha channel of the color, in the range from 0 to 1. Defaults to 1 when omitted.

Returns

kendo.Color A new object that represents the color with the passed color coordinates

Example - get the level of the node

<script>
var color = kendo.Color.fromHSV(1,.5,.5);
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(color.toCss()); // logs "#804140"

color = kendo.Color.fromHSV(.5,1,.5,1);
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(color.toCssRgba()); // logs "rgba(128, 1, 0, 1)"
</script>
In this article
fromHSV
Not finding the help you need?
Contact Support