6.0

Table Of Contents
82
Language Reference
4
&[GroupName].currentiteration (when used to keep track of repetitions within a group)
CurToStr (function)
Converts a currency expression into a string value.
Syntax
curtostr( expression ) string 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 positioning 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 ending 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 Design in order to study its possibilities.
Note: 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])