7.5

Table Of Contents
showUTF8left('\u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629', 'normal')
Example 2
This example shows a variable text string that is taken from the data, converted from the MS-CP-1256 encoding to UTF8 and
then displayed from the insertion point to the right.
setlinewidth(0.007)
moveto(0,0)
rlineto(&width,0)
rlineto(0,&height)
rlineto(neg(&width),0)
rlineto(0,neg(&height))
closepath()
stroke()
moveto(&width/2,&height/2)
SetStyleExt(&Style1,12.0000,0,[100],100)
showUTF8right(maputf8(@(2,15,35), 'MS-CP-1256', False),'normal')
Sin (function)
Returns the sine value of the specified angle.
Syntax
sin( value ) measure value
Argument
value
Measure value specifying the angle whose sine is returned.
Code Sample Example
This example draws a somewhat sinusoidal graph.
Example
moveto(0,0)
define(&i,integer,0)
for(&i,1,10,360)
©2010 Objectif Lune Inc - 362 -