colorString

The fill color in any of the following formats.

| Format | Description | --- | --- | --- | red | Basic or Extended CSS Color name | #ff0000 | Hex RGB value | rgb(255, 0, 0) | RGB value

Specifying 'none', 'transparent' or '' (empty string) will clear the fill.

Example

<div id="surface"></div>
<script>
var draw = kendo.drawing;
var geom = kendo.geometry;
var surface = draw.Surface.create($("#surface"));

var rect = new draw.Rect(new geom.Rect([10, 10], [100, 50]), {
    fill: {
        color: "#ff6347"  // Tomato color
    }
});

surface.draw(rect);
</script>
In this article
color
Not finding the help you need?
Contact Support