Demo:

Patterns with HTML5 Canvas

Please note: this demo page is to go along with the post HTML5 Canvas: Patterns, so please use that for reference.

Pattern applied to shape and shape outline

Repeating image pattern

Repeating image pattern on outline