7.6

Table Of Contents
The value you want to assign to the element. The value must be of the same the type as the array. Thus if the array is of type
string, the value must be of type string.
Rectangle (procedure)
Creates and draws a rectangle shape. The rectangle can optionally be filled using the colour specified with the setfillcolor
command. The border can optionally be drawn using the colour specified with the setstrokecolor command.
Syntax
rectangle( x, y, x1, y1, filled, stroked )
Arguments
x, y
Measure values representing the horizontal/vertical position, in inches, of the starting point.
x1, y1
Measure values representing the horizontal/vertical position, in inches, of the bottom right corner of the rectangle.
filled
Boolean value specifying whether the shape should be filled using the colour specified with the setfillcolor command.
stroked
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
©2010 Objectif Lune Inc - 433 -