WRAP

Synopsis
WRAP
Description

Tells the turtle to enter "wrap" mode. From now on, when the turtle is asked to move past the edge of the drawing surface, it "wraps around" and reappears at the opposite edge of the drawing surface. The top edge wraps to the bottom edge, while the left edge wraps to the right edge. (So the drawing surface is topologically equivalent to a torus.) This is the turtle's initial mode.

Compare this command with WINDOW, FENCE, and PERSPECTIVE.

Example
WRAP
FORWARD 950
RIGHT 90
WINDOW
FORWARD 950
FORWARD 100

SourceForge.net Logo