HTML5 Canvas Set Shape Stroke Color and Width Tutorial
To set a shape stroke and stroke width with Konva, we can set the stroke and strokeWidth properties when we instantiate a shape, or we can use the stroke() and strokeWidth() methods.
Instructions: Mouseover the pentagon to change its stroke color and width.