fill
Sets the shape fill.
Parameters
color String
The fill color to set.
opacity Number
optional
The fill opacity to set.
Returns
kendo.drawing.Rect
The current instance to allow chaining.
Example
<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>
In this article