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

Opacity

methods

Gets or sets the element opacity.

Parameters:opacityNumber

The element opacity. Ranges from 0 (completely transparent) to 1 (completely opaque).

Returns:Number

The current element opacity.

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