Click here to view and experiment with this page's source code.
This canvas demonstrates creating basic shapes and fills including gradients, enhancing the drawing using JavaScript loop and random functions:
This canvas demonstrates displaying an external image and drawing a shape on top of it, using stroke styles:
This canvas demonstrates a series of basic transformations: