stroke
Sets the shape stroke.
Example
<div id="surface" style="width: 250px; height: 250px;"></div>
<script>
var draw = kendo.drawing;
var path = new draw.Path()
.moveTo(50, 50)
.lineTo(200, 50)
.lineTo(200, 200)
.lineTo(50, 200)
.close();
// Set stroke using the stroke method
path.stroke("#e74c3c", 5, 0.8);
var surface = draw.Surface.create($("#surface"));
surface.draw(path);
</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.Path The current instance to allow chaining.
In this article