HTML5 Canvas Set Shape Stroke Color and Width with KineticJS

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.

Open in new window

Code Editor

Modified on April 9th, 2013 by Eric Rowell
comments powered by Disqus