7.4

Table Of Contents
Margin (procedure)
Offsets text within a series of commands, relative to the original top left position of the object. Margin also sets the horizontal
position to be used when crlf commands are encountered. All text-rendering functions that make use of margins use this set-
ting.
Syntax
margin( x, y )
Arguments
x, y
Measure values representing the horizontal/vertical position, in inches, of the starting point for the text within an object.
Code Sample Example
This example displays shadowed text by repeating the same text commands twice, using styles of different colours and
slightly offsetting the margin.
Example
margin(1,1) %Set margins to ( 1,1 )
setstyle(&blackfont) %Blackfont must already exist
show('This is shadowed text')
margin(.98,.98) %Offset margins slightly
setstyle(&bluefont) %Bluefont must already exist
show('This is shadowed text')
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
©2010 Objectif Lune Inc - 430 -