Canvas Demo

The Canvas component is just a shortcut to create an HTML Canvas and get access to its 2d drawing context.

In this demo, we have various sliders color pickers to affect the shape and color of the design that is drawn. Each component has its default handler set to the draw function so that the design is redrawn any time anything changes.