Basic painting done on simple HTML canvas.
May serve as example of using canvas.
See https://nilfalse.com/labs/paintbrush/ for live demo.
Create software for drawing basic primitives: line, rectangle, circle and curve. Circle and rectangle can be filled by the color. Pen and fill colors, pen width must be configurable.