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

Fill

methods

Sets the shape fill.

Parameters:colorString

The fill color to set.

Returns:kendo.drawing.Rect

The current instance to allow chaining.

<div id="surface"></div>
<script>
    var draw = kendo.drawing;
    var geom = kendo.geometry;

    var rectGeometry = new geom.Rect([0, 0], [100, 100]);
    var rect = new draw.Rect(rectGeometry);

    // Set fill color and opacity
    rect.fill("red", 0.7);

    var surface = draw.Surface.create($("#surface"));
    surface.draw(rect);
</script>
Not finding the help you need?
Contact Support