offsetNumber

The stop offset from the start of the element. Ranges from 0 (start of gradient) to 1 (end of gradient).

Example

<div id="surface"></div>
<script>
var draw = kendo.drawing;
var surface = draw.Surface.create($("#surface"));

var gradientStop = new draw.GradientStop({
    offset: 0.3, // 30% from the start
    color: "#0066cc"
});

console.log(gradientStop.options.offset); // 0.3
</script>
In this article
offset
Not finding the help you need?
Contact Support