opacityNumber

The element opacity. Inherited from Element.opacity

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("Semi-transparent text", position, {
        font: "16px Arial",
        fill: { color: "red" },
        opacity: 0.5
    });

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