7.4

Table Of Contents
show(strip('$',&data))
Stroke (procedure)
Outlines the current shape using the pen colour and width specified with the setstrokecolor and setlinewidth command.
The shape is not filled. To fill and outline the shape, use strokeandfill instead. If you only want to fill the shape, use fill.
Syntax
stroke()
Argument
None
Code Sample Example
This example draws a blue triangle with a blue border.
Example
setstrokecolor([100,100,0,0]) %Set pen colour to blue
moveto(1,1)
lineto(1.5,2)
lineto(0,2)
closepath()
stroke()
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.
©2010 Objectif Lune Inc - 366 -