Understanding <canvas>

A complex geometrical diagram.
Figure 1: Geometric transformations.

To draw, we initialize the context: ctx.beginPath();.