stroke

Sets the shape stroke.

Example

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

    var arcGeometry = new geom.Arc([100, 100], {
        radiusX: 25,
        radiusY: 35,
        startAngle: 45,
        endAngle: 270
    });
    var arc = new draw.Arc(arcGeometry);

    // Set stroke color, width, and opacity
    arc.stroke("darkgreen", 4, 0.8);

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

    // Change stroke after 2 seconds
    setTimeout(() => {
        arc.stroke("red", 2, 1);
    }, 2000);
</script>

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.Arc The current instance to allow chaining.

In this article
stroke
Not finding the help you need?
Contact Support