fillkendo.drawing.FillOptions

The fill options of the shape.

Example - setting fill options in configuration

<div id="surface" style="width: 250px; height: 250px;"></div>
<script>
    var draw = kendo.drawing;

    var multiPath = new draw.MultiPath({
        fill: {
            color: "green",
            opacity: 0.7
        }
    });

    multiPath.moveTo(50, 50).lineTo(200, 50).lineTo(200, 150).lineTo(50, 150).close()
             .moveTo(75, 75).lineTo(175, 75).lineTo(175, 125).lineTo(75, 125).close();

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