beautypg.com

Moveto – AMT Datasouth PAL User Manual

Page 144

background image

moveto

138

moveto

Description

Establishes the new current point.

Usage

XNum YNum

moveto

XNum

Integer or fixed-point. New current X coordinate. Specified in user coordinates.

YNum

Integer or fixed-point. New current Y coordinate. Specified in user coordinates.

Comments

Most PAL drawing operators use the current point as the location at which to draw. In most cases,
the current point establishes the bottom left corner of any new object drawn.

The moveto operator also has the affect of ending any active sub-path in the graphics state and
starting a new sub-path. Depending upon the desired result, the programmer may wish to specify
closepath before a moveto in order to close the active sub-path. Using moveto without
closepath creates an open sub-path.

Closing a sub-path instructs PAL to smooth the connection between the first and last lines of the
path. PAL assumes that the start and end points of an open path either do not meet or the
programmer does not wish PAL to smooth the connection.