optionsObject

The configuration of this gradient.

Example

<div id="surface"></div>
<script>
var draw = kendo.drawing;
var geom = kendo.geometry;
var linearGradient = new draw.LinearGradient({
    stops: [
        { offset: 0, color: "#ff0000", opacity: 1 },
        { offset: 1, color: "#0000ff", opacity: 1 }
    ]
});
var surface = draw.Surface.create($("#surface"));
var rect = new draw.Rect(new geom.Rect([10, 10], [100, 50]), {
    fill: linearGradient
});
surface.draw(rect);
</script>
In this article
options
Not finding the help you need?
Contact Support