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

Fill

configuration

The fill options of the shape.

fill

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