7.4

Table Of Contents
show(inttostr(&i)+' is an') %Display number
if(mod(&i,2)=1)
%Determine if number is odd or even
show(' odd ')
elseif()
show(' even ')
endif()
show('number.')
crlf()
endfor()
MoveTo/RMoveTo (procedure)
Moves the current point to the specified coordinates.
Syntax
moveto( x, y )
Arguments
x, y
Measure values representing the new horizontal/vertical position, in inches, of the current point. In rmoveto, these values
are relative to the current point of origin. In moveto, they are absolute values.
Code Sample Example
This example displays a triangle within a rectangle.
Example
rectstroke(.5,.5,2,2) %Draw rectangle
moveto(1,1) %Reset current point
lineto(1.5,2) %Draw first line
lineto(0.5,2) %Draw second line
closepath() %Close shape
stroke() %Draw shape
Mul (function)
Multiplies two expressions. This is the functional equivalent of the * operator.
©2010 Objectif Lune Inc - 305 -