opacity
Gets or sets the element opacity. Inherited from Element.opacity
If set, the stroke and fill opacity will be multiplied by the 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("Fading text", position, {
        font: "18px Arial",
        fill: { color: "blue" }
    });
    text.opacity(0.3);
    var surface = draw.Surface.create($("#surface"));
    surface.draw(text);
</script>Parameters
opacity Number
The element opacity. Ranges from 0 (completely transparent) to 1 (completely opaque).
Returns
Number The current element opacity.
In this article