A number of functions are provided that let you perform a number of connected drawing operations by encapsulating all the operations as a single path, rendering the graphic itself only when the whole path has been defined explicitly. You can use these functions by following the general procedure below:
start-path.
line-to, move-to, curve-to, and arc-to.
close-path to create a closed path from the segments defined in step 2 above.
end-path (if you have not already used close-path).
stroke-path.
fill-path.
Each of these functions is described in a little more in the following sections. For full details about each individual function, refer to its full reference entry in Section 6.6.