Command | What it does | Example |
CS | Clear the screen of the previous drawing! | |
setfloodcolor [r g b] | Sets the flood color to the appropriate RGB (Red, Green, Blue) | setfloodcolor [ 0 255 255 ] |
fill | Floods the area with color from the command above | |
SetPenSize [n n] | Sets the width of the pen to n pixels. You must use two numbers | SetPenSize [5 5] |
SetPC [r g b] | Sets the pen color to the appropriate RGB (Red, Green, Blue) values | SetPC [255 0 0] (Gives red) |
PE | When the pen is moved, it will erase whatever is under it | |
FD x | Move forward x pixels | FD 100 |
BK x | Move Backward x pixels | BK 100 |
LT x | Rotate the turtle x degrees left | LT 45 |
RT x | Rotate the turtle x degrees right. | RT 45 |
ARC a r | Draw an arc | ARC 45 100 |
Repeat x [ uses single commands ] | Repeats the commands you have used before x times | repeat 5 [ fd 100 rt 72 ] |
PU | Short for "pen up," it lifts the "pen" from the screen | |
PD | Short for "pen down," it droips the "pen" back to drawing | |
Let's now look at some Logo calculation commands