7.5

Table Of Contents
Boolean value specifying whether the shape should be outlined using the colour specified with the setstrokecolor command.
Code Sample Example
This example draws a yellow rectangle with a black border.
Example
setstrokecolor([0,0,0,100])
setfillcolor([0,0,50,0])
rectangle(0,0,3,3,true,true)
RectFill (procedure)
Creates and draws a filled rectangle shape. The colour used to fill the shape can be specified using the setfillcolor command.
Syntax
rectfill( x, y, width, height )
Arguments
x, y
Measure values representing the horizontal/vertical position, in inches, of the starting point.
width, height
Measure values representing the width/height, in inches, of the rectangle shape.
Code Sample Example
This example draws two identical rectangles.
To draw a rectangle that is both stroked and filled, use rectstroke() and rectfill() in succession, or rectfillstroke().
Example
setfillcolor([0,100,100,0])
%Draw first rectangle using rectfill with red
rectfill(1,1,2,2)
%Offset starting position slightly to distinguish
%between each rectangle and fill second one with blue.
translate(.2,.2)
setfillcolor([100,100,0,0])
%Draw second rectangle using conventional commands
moveto(1,1) %Reset current point
©2010 Objectif Lune Inc - 579 -