7.5

Table Of Contents
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()
For EndFor (procedure)
This command structure allows a series of nested commands to be repeated a specified number of times. Each for statement
must have a corresponding endfor statement in order for PlanetPress Talk to know which commands to include in the loop.
Note that you cannot increment the counter for a for() loop, inside the loop.
If you open a document created a with a version of PlanetPress earlier than 5.2.0, and if that document includes a for() loop
with an increment greater than 1, you will notice that the loop is executed one less time than with your older version software
both in PlanetPress itself and when you use the Optimized PostScript Stream option. The behavior on printers (using the Printer
Centric option), on the other hand, remains unchanged.
Syntax
for( varname, startvalue, increment, stopvalue )
endfor()
Arguments
varname
Name of the variable to use for iterations. The variable must already exist.
startvalue
Integer value to initialize varname.
increment
©2010 Objectif Lune Inc - 421 -