fill
Sets the shape fill.
Example
<div id="surface" style="width: 250px; height: 250px;"></div>
<script>
var draw = kendo.drawing;
var path = new draw.Path()
.moveTo(50, 50)
.lineTo(200, 50)
.lineTo(125, 200)
.close();
// Set fill using the fill method
path.fill("#e74c3c", 0.7);
var surface = draw.Surface.create($("#surface"));
surface.draw(path);
</script>
Parameters
color String
The fill color to set.
opacity Number
optional
The fill opacity to set.
Returns
kendo.drawing.Path
The current instance to allow chaining.
In this article