6.0

Table Of Contents
78
Language Reference
4
ClearPage (procedure)
Clears the current data page. This command should only be used before reading the next page of data from
the input stream.
Syntax
clearpage()
Argument
None
ClosePath (procedure)
Closes any open path and completes the current shape, if need be, by drawing a line from the last point in
the shape to the starting point. This ensures the shape is closed, thus enabling filling to take place if
specified. Only closed shapes can be filled.
Syntax
closepath()
Argument
None
Code Sample Example
The first line of code sets the starting point of a triangle, the second and third lines of code draw the first
and second lines (or sides) of the triangle, the fourth line of code closes the triangle shape by implicitly
issuing a moveto command.
Example
moveto(1.0,1.0)
lineto(1.5,2.0)
lineto(0.5,2.0)
closepath()
fill()
Cos (function)
Returns the cosine value of the specified angle.