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

Fill

methods

Sets the text fill.

Parameters:colorString

The fill color to set.

Returns:kendo.drawing.Text

The current instance to allow chaining.

<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>
Not finding the help you need?
Contact Support