Demo:
Creating straight line paths on an HTML5 Canvas
Please note:
this demo page is to go along with the post
HTML5 Canvas: Paths
, so please use that for reference.
Drawing lines
Straight line
Straight line with multiple points
Straight line house with multiple points using moveTo
Closed path shapes
Filled star shape