fill
Sets the text fill.
Example
<div id="surface"></div>
<script>
var draw = kendo.drawing;
var geom = kendo.geometry;
var position = new geom.Point(10, 10);
var text = new draw.Text("Dynamic fill", position, {
font: "18px Arial"
});
text.fill("purple", 0.7);
var surface = draw.Surface.create($("#surface"));
surface.draw(text);
</script>
Parameters
color String
The fill color to set.
opacity Number
optional
The fill opacity to set.
Returns
kendo.drawing.Text
The current instance to allow chaining.
In this article