| rmoveto |
(Number dx, Number dy) |
typedict.Path |
| |
Creates a new subpath in this path that has its first point moved
from the current point
(x, y),
if there is one, to the point
(x+dx, y+dy),
which becomes the new current point.
The coordinates of this point are transformed using the
CTM
associated with this path when
rmoveto
is called, which means subsequent changes to
CTM
do not affect this point.
If this path is empty
rmoveto
will abort with a
nocurrentpoint
error.
| |
| Example: |
The program,
import yoix.stdio.*;
Path p;
moveto(x, y) = printf(" moveto(%.1f, %.1f);\n", x, y);
p.moveto(0, 0);
p.rmoveto(100, 200);
p.rmoveto(100, 200);
printf("Output before CTM change:\n");
p.pathforall(moveto, NULL, NULL, NULL, NULL);
p.CTM.scale(2, 2);
printf("\nOutput after CTM change:\n");
p.pathforall(moveto, NULL, NULL, NULL, NULL);
prints something like
Output before CTM change:
moveto(200.0, 400.0);
Output after CTM change:
moveto(100.0, 200.0);
on standard output.
Notice how consecutive
movetos
and
rmovetos
were collapsed and how the coordinates changed after we scaled the
CTM
associated with the path.
| | |
| Return: |
Path
| | |
| See Also: |
arc,
arcn,
closepath,
currentpath,
currentpoint,
curveto,
flattenpath,
Graphics,
lineto,
moveto,
newpath,
pathbbox,
pathforall,
quadto,
rcurveto,
rlineto,
rquadto
|
|
Yoix is a registered trademark of AT&T Inc.
|