Blog Design Development Mobile Inspiration CSS Javascript News Opinions Politics Menu

Canvas Cheat Sheet

HTML5 Canvas Cheat Sheet
HTML5 Canvas Text Font, Size, and Style Tutorial

HTML5 Canvas Line Width Tutorial

Description

To define the width of an HTML5 Canvas line, we can use the lineWidth property of the canvas context.  The lineWidth property must be set before calling stroke().

Demo