Type Logo commands in the console at the bottom-right and press 'Run'.
To define procedures switch to the 'Procs' tab and write them so that you can call them in the console.
You can also define a procedure in the console, this can be useful when copying code from the 'Examples' tab and pasting it into the console to test it.
Currently supported Logo commands are:forward steps fd steps | Moves the turtle forwards by a given number of steps |
back steps bk steps | Moves the turtle backwards by a given number of steps |
left degrees lt degrees | Rotates the turtle to the left by a given number of degrees |
right degrees rt degrees | Rotates the turtle to the right by a given number of degrees |
clearscreen cs | Erases all drawing from the screen |
home | Positions the turtle in the center of the screen, pointing upwards |
repeat number commands | Takes a number and a list of commands between [ ] and executes the commands repeatedly as specified by the number. For example to draw a square: repeat 4 [fd 50 rt 90] |
repeat 4 [fd 50 rt 90]
repeat 8 [repeat 4 [fd 50 rt 90] rt 45]
to swirly :a :b :c
fd :a
rt :b
swirly :a :b + :c :c
end
swirly 12 8 9
to circle
repeat 180 [fd 2 rt 2]
end
to circles
repeat 6 [circle rt 60]
end
to halfcircle
repeat 180 [fd 2 rt 1]
end
to halfcirclepattern
repeat 3 [halfcircle rt 60]
end
cs
home
circles
cs
home
halfcirclepattern