LOGO Commands 2
Here are a few more commands that might be useful. More will be added as they're needed.
GRAPHICS
========
The center of the graphics window is turtle location [0 0]. Positive
X is to the right; positive Y is up. Headings (angles) are measured
in degrees clockwise from the positive Y axis. (This differs from the
common mathematical convention of measuring angles counterclockwise
from the positive X axis.) The turtle is represented as an isoceles
triangle; the actual turtle position is at the midpoint of the base
(the short side).
TURTLE MOTION QUERIES
---------------------
POS
outputs the turtle's current position, as a list of two numbers, the X and Y coordinates.
HEADING
outputs a number, the turtle's heading in degrees.
CONTROL STRUCTURES
==================
WAIT time
command. Delays further execution for time 60ths of a second. Also causes any buffered characters destined for the terminal to be printed immediately. WAIT 0 can be used to achieve this buffer flushing without actually waiting.
WORKSPACE MANAGEMENT
====================
WORKSPACE CONTROL
-----------------
SAVEL contentslist filename
command. Saves the definitions of the procedures, variables, and property lists specified by contentslist to the file named filename.
Example: SAVEL "INITIALS "W:/INITIALS.TXT
SETEDITOR path
command. Tells Logo to use the specified program as its editor instead of the default editor. The format of a path depends on your operating system.
Example: SETEDITOR "C:/WINNT/NOTEPAD.EXE
Mtht420