6.0

Table Of Contents
111
Example 2
define(&data,string,'This is a~sample string')
define(&x,integer, pos('~', &data))
%Find tilde
if(&x>1)
show(right(&data,length(&data)-&x))
%Show remainder of string
endif()
LineTo/RLineTo (procedure)
Draws a line starting from the current point up to the specified coordinates.
Syntax
lineto( x, y )
Arguments
x, y — Measure values representing the horizontal/vertical position, in inches, of the ending point of the
line. When using rlineto, these values are relative to the current point of origin. When using lineto, they
are absolute values.
Code Sample Example
This example draws an empty triangle with a blue outline.
Example
setstrokecolor([100,100,0,0])%Set pen colour to blue
moveto(1,1) %Set starting point
lineto(1.5,2) %Draw first line
lineto(0.5,2) %Draw second line
closepath() %Close shape
stroke() %Draw shape
LowerCase (function)
Convert a string to all lower case characters.