7.4

Table Of Contents
Syntax
curtostr( expression ) string value
Argument
expression
Currency value to convert.
CurToFloat (function)
Converts a currency expression into a measure value.
Syntax
curtofloat( expression ) measure value
Argument
expression
Currency value to convert.
CurveTo/RCurveTo (procedure)
Creates a Bezier curve. Bezier curves are shapes defined using 4 points: the starting and ending points are physical posi-
tioning points while the second and third points are control points on the curve. In PlanetPress Talk, the starting point is implicit
and automatically set to the current cursor position. The first control point defines the direction the curve takes when moving
from the starting point, and before shifting to the second control point, which defines a second curve before reaching the end-
ing point.
A complete explanation of Bezier curves is beyond the scope of this document. Feel free, however, to try out this command
using the PlanetPress Talk Editor in PlanetPress in order to study its possibilities.
To draw a simple curve, use the same (x,y) coordinates for both control points.
Syntax
curveto( x1, y1, x2, y2, x3, y3 )
Arguments
x1, y1, x2, y2, x3, y3
Pairs of measure values representing the horizontal/vertical position, in inches, of each point defining the Bezier curve. When
using rcurveto, these values are relative to the current point of origin. When using curveto, they are absolute values.
Code Sample Example
This example draws a triangle with a twisted bottom side. The triangle has a blue outline and is filled with yellow.
Example
setstrokecolor([100,100,0,0])
setfillcolor([0,0,100,0])
moveto(1,1)
lineto(1.5,2)
©2010 Objectif Lune Inc - 267 -