toRGB
Returns the color in RGB representation. The result has the following properties:
r
-- red component as floating point between 0 and 1g
-- green componentb
-- blue componenta
-- alpha
This does not modify the current object, it creates a new one instead.
Returns
Object
An object with r, g, b and a fields.
Example
<script>
var color = kendo.parseColor("#ff0000");
var rgbColor = color.toRGB();
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(rgbColor); // logs {r: 1, g: 0, b: 0, a: 1}
</script>
In this article