Once we have started a path,
we then need to tell the canvas
where to start drawing from. We
use the moveTo()
method for this:
The moveTo()
method takes two parameters.
The x-coordinate
, and the y-coordinate
of
the point from where we want to start drawing
the shape.
In the example given below, comment
out the moveTo()
method and see
what happens.