Manual

65
closepath
Hints
The programmer should always use the closepath operator instead of the final lineto operator to
close the path. The
closepath
operator implies a
lineto
operation. Therefore, drawing a square
involves a
moveto
operation, three
lineto
operations, and a final
closepath
operation. At a
minimum, specifying four
lineto
operations followed by a
closepath
operation wastes time and a
little memory. However, under certain circumstances, it may also produce undesired results.










