Demo:

Drawing simple shapes on an HTML5 Canvas

Please note: this demo page is to go along with the post HTML5 Canvas: Intro and drawing simple shapes, so please use that for reference.

Rectangles

Filled rectangle

Outlined rectangle

Clearing rectangle

Circles

Full circle

Half circle

Third of circle

Quarter circle

Other shapes

Pill shape