7.6

Table Of Contents
Result:
Fill (procedure)
Fills the current closed shape, using the colour specified with the setfillcolor command. Only the inside of the shape is filled,
not its outline. To fill and outline the shape, use strokeandfill command instead. If you only want to outline the shape, use
stroke. Only closed shapes can be filled.
Syntax
fill()
Argument
None
Code Sample Example
This example draws a yellow filled triangle.
Example
setfillcolor([0,0,100,0])
moveto(1,1)
lineto(1.5,2)
lineto(0,2)
closepath()
fill()
LineTo/RLineTo (procedure)
Draws a line starting from the current point up to the specified coordinates.
Syntax
lineto( x, y )
Arguments
x, y
©2010 Objectif Lune Inc - 574 -