stroke

Sets the shape stroke.

Parameters

color String

The stroke color to set.

width Number optional

The stroke width to set.

opacity Number optional

The stroke opacity to set.

Returns

kendo.drawing.Circle The current instance to allow chaining.

Example

<div id="surface"></div>
<script>
    var draw = kendo.drawing;
    var geom = kendo.geometry;

    var circleGeometry = new geom.Circle([100, 100], 30);
    var circle = new draw.Circle(circleGeometry).fill("lightcoral");

    var surface = draw.Surface.create($("#surface"));
    surface.draw(circle);

    // Set stroke properties using the stroke method
    circle.stroke("darkred", 4, 0.8);

    // Chain stroke with other methods
    setTimeout(() => {
        circle.stroke("blue", 2).fill("lightblue", 0.6);
    }, 2000);
</script>
In this article
stroke
Not finding the help you need?
Contact Support