New to Kendo UI for jQueryStart a free 30-day trial

kendo.Color

These objects can be used to manipulate colors. You cannot instantiate a Color object directly, instead you should use kendo.parseColor or one of the functions below:

js
var red = kendo.Color.fromRGB(1, 0, 0, 1);
var blue = kendo.Color.fromBytes(0, 0, 255, 1);
var green = kendo.Color.fromHSV(120, 1, 1, 1);

We support three color representations: as RGB (where the values are float numbers between 0 and 1), as Bytes (where values are integers between 0 and 255) or as HSV. They all support transparency via the last argument, a float between 0 and 1. If missing it will default to 1 (fully opaque).

If you are not certain which representation is used internally for a particular color object, you can convert it to the one you need using one of the methods below.

Fields
fields
r
fields
g
fields
b
Static Methods
static methods
fromRGB
static methods
fromHSV
static methods
fromBytes
Methods
methods
diff
methods
equals
methods
toHSV
methods
toRGB
methods
toBytes
methods
toHex
methods
toCss
methods
toCssRgba
methods
toDisplay
Not finding the help you need?
Contact Support