opacityNumber

The element opacity. Inherited from Element.opacity

Example

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

    var path = new draw.Path({
        opacity: 0.5,
        stroke: {
            color: "#2c3e50",
            width: 4
        },
        fill: {
            color: "#1abc9c"
        }
    })
    .moveTo(50, 100)
    .lineTo(150, 50)
    .lineTo(200, 150)
    .close();

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