+-*/ |
|
math operations |
ABS number |
|
absolute value of number |
BACK number |
BK |
moves turtle opposite direction |
CLEAN |
|
erases all graphics, does not affect turtle heading |
CLEARGRAPHICS [ |
CG |
clears current graphics, puts turtle home |
COS number |
|
cosine of angel measured in degrees |
DISTANCE x y |
|
determines distance to indicated position |
EDIT |
ED |
Edits a file: edit "filename |
END |
|
terminates procedure |
EXP number |
|
inverse function of LN, e 2.7128 |
FILLSH [commands] |
|
fills graphics region with pen pattern |
FORWARD number |
FD |
moves turtle forward |
HEADING |
|
outputs heading from 0 to 360 degrees |
HIDETURTLE |
HT |
make current turtle cursor disappear |
HOME |
|
moves cursor to home position |
LEFT number |
LT |
turns left specified number of degrees |
LN number |
|
natural logarithm |
LOAD filename |
|
loads filename from memory |
MAKE name value |
|
make "varname value; assigns values to variable |
NOWRAP |
|
Allows turtle to move beyond boundary |
PENDOWN |
PD |
puts pendown |
PENERASE |
PE |
turns pen into eraser mode |
PENPAINT |
|
paints with current pen pattern and size |
PENUP |
PU |
raises pen |
POS |
|
Outputs the turtles x and y coordinates |
POTS |
|
prints out titles of procedures |
RANDOM number |
|
random |
REPEAT number [procedure] |
|
repeat procedure specified number of times |
RIGHT |
RT |
turns turtle to the right specified number of degrees |
SAVE filename |
|
saves filename |
SETHEADING number |
SETH |
Rotates turtle to specified heading |
SETPENMODE number |
|
uses 0 to 7 as input, affects pattern |
SETPENSIZE height width |
SETPS |
0 to 255 range |
SETPPATTERN number |
SETPP |
1-38 patterns |
SETXY x y |
|
positions cursor with x and y coordinates |
SIN number |
|
sine of angel measured in degrees |
SQRT number |
|
square root of number |
STAMPARC xradius yradius deg |
|
creates an arc |
STAMPOVAL width height |
|
creates oval |
STAMPRECT width height |
|
creates rectangle |
TO |
|
define a procedure |
TO procedure :x :y |
|
defines a procedure with variables :x and :y |
TOWARDS x y |
|
outputs heading toward point |
WRAP |
|
wraps graphics within window |
QUOTIENT |
math operations |
Outputs integer of division of first divided by second |
REMAINDER |
math operations |
outputs just the remainder of division, dropping the integer |
RUN |
math operations |
executes the items in RL, especially if it is an equation |
SIN |
math operations |
outputs the sine of angle expressed in degrees |
SQRT |
math operations |
outputs the square root of input |
SUM |
math operations |
adds two numbers which follow it together |
PRINT (PR [data]) |
output |
prints out specified data |
TYPE |
output |
similar to PRINT but cursor doesn't move to next line |
BacK (BK) |
pen commands |
Moves turtle a specified number of steps backwards |
ForwarD (FD) |
pen commands |
Moves the turtle forward a specified number of steps |
HideTurtle (HT) |
pen commands |
makes the turtle turn invisible |
HOME |
pen commands |
moves the turtle to the origin (0,0) in the middle |
LefT (LT) |
pen commands |
Turns the turtle a specified number of degrees to the left |
PenDown (PD) |
pen commands |
puts pen down so that line is drawn when turtle is moved |
PenErase (PE) |
pen commands |
pen acts like an eraser in this mode |
PenUp (PU) |
pen commands |
lifts pen so no line is drawn when the turtle is moved |
RighT (RT) |
pen commands |
turns the turtle a specified number of degrees to the right |
SETHeading (SETH) |
pen commands |
Points the turtle in specified direction from 0 to 360 deg. |
ShowTurtle (ST) |
pen commands |
shows turtle; important to get started |
.Printer 0 |
printer |
turns printer off |
.PRINTER 1 |
printer |
sends text to printer (in slot 1) rather than screen |
EDit (ED) |
procedures |
Allows you to enter the EDIT mode to make procedures |
END |
procedures |
Defines the end of a procedure |
REPEAT # [procedure] |
procedures |
Causes procedure to be repeated specified number of times |
TO (procedure name) |
procedures |
Signals the beginning of procedure |
CLEAN |
screen display |
Erases all graphics but leaves turtle at last location |
ClearScreen (CS) |
screen display |
Erases all graphics and puts turtle at origin (0,0) again |
FENCE |
screen display |
Prevents turtle from exiting screen; terminates procedure |
Fullscreen (Control-L) |
screen display |
gives full screen of graphics, no text |
PEN |
screen display |
Outputs the state and color of the pen |
SETBackGround (SETBG) |
screen display |
Sets background colors : 0-BK; 1-W; 2-G; 3-V; 4-O; 5-B |
SETPenColor (SETPC) |
screen display |
Sets color of pen : 0-BK; 1-W; 2-G; 3-V; 4-O; 5-B |
Splitscreen (Control-S) |
screen display |
gives graphics and text on same screen |
Textscreen (Control-T) |
screen display |
Gives a full screen of text with no graphics |
WINDOW |
screen display |
Allows turtle to leave screen but won't wrap around |
WRAP |
screen display |
When turtle goes of screen it will wrap around on other side |
PRint (PR [text]) |
text |
prints out text specified in brackets |
WAIT (# of 60ths of sec) |
text |
Delays next output by specified time |
MAKE "varname varvalue |
variable definition |
defines vairable name to have a specific value |
ERase (ER) "procedure name |
workspace |
erases specific procedure from workspace |
ERaseALL (ERALL) |
workspace |
Erases all procedures in workspace |
PrintOutTitleS (POTS) |
workspace |
Prints out titles of all procedures in workspace |