SETPOSXYZ

Synopsis
SETPOSXYZ position
Description

Moves the turtle to an absolute X,Y,Z coordinate. The position input is a list of three numbers, the X, Y and Z coordinates.

SETPOSXYZ is designed to run in PERSPECTIVE mode. When used in 2D modes, SETPOSXYZ ignores the Z coordinate and moves the turtle to the given X and Y coordinates.

Example

An example that draws a cube using SETPOSXYZ:

CLEARSCREEN
PERSPECTIVE
SETPOSXYZ [0 100 0]
SETPOSXYZ [100 100 0]
SETPOSXYZ [100 0 0]
SETPOSXYZ [0 0 0]
SETPOSXYZ [0 0 100]
SETPOSXYZ [100 0 100]
SETPOSXYZ [100 100 100]
SETPOSXYZ [0 100 100]
SETPOSXYZ [0 0 100]
SETPOSXYZ [0 100 100]
SETPOSXYZ [0 100 0]
SETPOSXYZ [100 100 0]
SETPOSXYZ [100 100 100]
SETPOSXYZ [100 0 100]
SETPOSXYZ [100 0 0]

See Also
POSXYZ
SETX
SETY
SETZ

SourceForge.net Logo