SETSCRUNCH

Synopsis
SETSCRUNCH xscale yscale
Description

Note

SETSCRUNCH is not needed to correct display problems, but is available for folks who like to deliberately misadjust the aspect ratio.

Adjusts the aspect ratio and scaling of the graphics display. After SETSCRUNCH is used, all further turtle motion is adjusted by multiplying the horizontal and vertical extent of the motion by the two numbers given as inputs. For example, after the instruction "SETSCRUNCH 2 1" motion at a heading of 45 degrees moves twice as far horizontally as vertically. If your squares don't come out square, try using this command.

Alternatively, you can use SETSCRUNCH to deliberately misadjust the aspect ratio to draw an ellipse.

Example
SETSCRUNCH 2.0 1.0
REPEAT 4 [FORWARD 100 RIGHT 90]
SHOW SCRUNCH
[2 1]

SourceForge.net Logo