To set a shape stroke and stroke width with KineticJS, we can set the stroke and strokeWidth properties when we instantiate a shape, or we can use the setStroke() and setStrokeWidth() methods.
Instructions: Mouseover the pentagon to change its stroke color and width.
Code Editor
Modified on April 9th, 2013
by Eric Rowell