opacity
Gets or sets the element opacity.
Example - setting opacity on an element
<div id="surface"></div>
<script>
var draw = kendo.drawing;
var path = new draw.Path();
path.moveTo(0, 0).lineTo(100, 100);
path.opacity(0.5);
var surface = draw.Surface.create($("#surface"));
surface.draw(path);
</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