7.5

Table Of Contents
StrokeAndFill (procedure)
Outlines the current shape using the pen colour and width specified with the setstrokecolor and setlinewidth command.
The shape is then filled using the colour specified with the setfillcolor command. To simply outline the shape, use stroke
instead. If you only want to fill the shape, use fill.
Syntax
strokeandfill()
Argument
None
Code Sample Example
This example draws a yellow triangle with a blue outline.
Example
setstrokecolor([100,100,0,0])
setfillcolor([0,0,100,0])
moveto(1,1)
lineto(1.5,2)
lineto(0,2)
closepath()
strokeandfill()
Paragraphs and Text
BeginParagraph EndParagraph (procedure)
Delimits a paragraph of formatted text.
The beginparagraph endparagraph structure can contain only the following commands: setstyle(), setstyleext(),
show(), and % (indicating a commented line). Any other command included within this structure will yield unpredictable
results. A margin() command should precede the beginparagraph...endparagraph structure, and each variable you ref-
erence within the structure must have its own procedure., as demonstrated in the second of the examples below. Also note
that the first command within a beginparagraph...endparagraph structure must be the setstyle() command.
No crlf procedures are permitted inside a paragraph structure, since crlfs are paragraph delimiters.
If you do not need to change fonts or use variables within a paragraph, it is strongly recommended you use the text object in
PlanetPress, as PlanetPress optimizes text objects to improve performance.
©2010 Objectif Lune Inc - 582 -