FENCE

Synopsis
FENCE
Description

Tells the turtle to enter "fence" mode. In fence mode, when the turtle is asked to move past the boundary of the graphics window, it moves as far as it can and then stops at the edge with an "out of bounds" error message.

Compare this command with WRAP, WINDOW, and PERSPECTIVE.

Example
WRAP
FORWARD 950
RIGHT 90
FENCE
FORWARD 950
turtle out of bounds
FORWARD 100
turtle out of bounds
BACK 500

SourceForge.net Logo