New to Kendo UI for jQuery? Download 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:

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

Methods

In this article