SETEXTENT [xExtent yExtent]
|Explanation||SETEXTENT defines the coordinate mapping
mode in terms of turtle steps. The default is an extent
value of zero, which means the coordinate system has an
aspect ratio of 1:1 regardless of the window size.
Painting outside the window in WINDOW
mode is possible and the drawings become visible when the
window is made larger.
If a different extent is defined, the coordinate system is mapped to the size given regardless of the window size. If an extent value of 200 is set, the coordinates range from -200 to +200. Scaling is performed automatically to fit within the window. It is possible to set different extents for the X and Y coordinates by using a two-element list as input. (SETEXTENT) resets the extent to 1:1 mapping.
Note that each individual turtle, control, or bitmap may have its own screen extent. Thus the lines drawn by different turtles for the same number of turtle steps may be of different lengths if their extents are not the same.
|Examples||ASK 0 [SETEXTENT 100 PENUP SETX
ASK 1 [SETEXTENT 50 PENUP SETX 25 PENDOWN]
TELL [0 1]