You can teach the computer procedures that it will remember. Here is an example.
That teaches the computer how to draw a triangle, but nothing is drawn until you type the word triangle.
This procedure has a variable, so it draws a pentagon of any size. Type pent 70 for sides of length 70.
Gives a random number between the two given numbers.
rt (random 1 360) turns the turtle
through a random angle.
wrap brings a turtle that leaves one side of the screen back on the other. window turns wrapping off.
repeat 12[Brick rt 30]
You will need to click the arrow in the corner of the command box first, so that there is room for several lines.
to tree :size if :size < 5 [forward :size back :size stop] forward :size/3 left 30 tree :size*2/3 right 30 forward :size/6 right 25 tree :size/2 left 25 forward :size/3 right 25 tree :size/2 left 25 forward :size/6 back :size end clearscreen tree 120
Here is every command this version of Logo understands. The commands marked Level 2 and Level 3 work at Level 1 too, once you are ready for them. Remember that one step is one pixel from Level 2 onwards.
Level 1 - Basic use of Logo commands to draw shapes
Level 2 - Some more Logo commands to draw more complex shapes
Level 3 - Use Logo procedures to draw more complex diagrams
More on Angles including lesson Starters, visual aids and investigations.
New in this version: the computer looks at your drawing and decides whether it answers the challenge. Judging a picture is a hard thing for software to do, so it will not always get it right. If you are sure your drawing answers the challenge but no star appears, show it to your teacher. Teachers with a Transum subscription can award the Logo trophy from their dashboard.
Every command you have typed this session. Click one to put it back in the command box.