The
website stores your session history and saves your procedures to be re-used.

Command
box in the bottom of the page looks like this:

You
can issue the following commands and see them in action!

Basic Logo Commands:

Command

What it does

FD 100

Move the turtle forward 100 steps.

RT 90

Turn the turtle to the right 90º.

LT 90

Turn the turtle to the left 90º.

BK 100

Move the turtle backwards 100 steps.

PU

Put the turtle's pen up off the paper.

PD

Put the turtle pen back down on the paper.

CS

Clear the screen and start over.

HT

Hide the turtle (triangle).

ST

Show the turtle (triangle).

REPEAT 3 [...]

Repeat the commands 3 times.

HOME

Resets the turtle to centre of the screen

SETXY 20 20

Sets position of turtle to new values of X and Y

ARC 90 50

Creates arc enclosed in angle 90 with radius 50

1.
Simple Drawings:

Issue the following commands and see the
output. Try to understand why each command draws corresponding outputs.

Command

Output

csfd 100 rt 90 fd 100 rt 90 fd 100 rt 90 fd 100

csfd 100 rt 120 fd 100 rt 120 fd 100

csrt 90 fd 100 rt 120 fd 100 rt 120 fd 100

cslt 30 fd 100 rt 120 fd 100 rt 120 fd 100

csfd 100 rt 90 fd 110 rt 90 fd 120 rt 90 fd 130

You
can click ON the arrow at the top right corner (as shown below):

Now,
you are in Command mode - you can type several commands in the window, but the
program will run only when you click on Run button. Program continues to stay
there – makes it easy to edit, update and run again. Try the commands for
Simple drawings again:

2. Power of Repeat:
Drawing Polygons and Stars

Use
cs command to clear the screen whenever you want to start
with a blank workspace.

REPEAT 3 [FD 100
RT 120]

REPEAT 4 [FD 100
RT 90]

REPEAT 4 [

FD 100

LT 120

FD 100

LT 120

FD 100

LT 120

FD 100

RT 90

]

REPEAT 360 [FD 1
RT 1]

REPEAT 5 [FD 100
RT 144]

3. Try to draw these on your own!

End position of turtle can be anywhere & need not match with these drawings.

Hints: you may need pu and pd commands to draw disconnected components. Also, you may also need repeat within repeat to draw complex stuff.

A

B

C

D

E

F

G

H

I

J

K

L

Feel free to be creative and develop a few cool shapes on your own!

4. arc function to draw circle OR part of a circle.

Note: Turtle does not move.

cs

arc 360 100

cs

arc 180 100

cs

arc 90 100

rt 180

arc 90 100

cs

arc 90 100 rt 180

arc 90 100

5. Try to draw these on your own!

6. set pen size and fill color

cs

setpensize 50

arc 180 100

rt 180

arc 180 50

cs

setpensize 20

arc 180 15

setpensize 50

arc 180 100

rt 180

arc 180 50

cs

setpensize 20

setpencolor 4

arc 180 15

setpencolor 1

setpensize 50

arc 180 100

rt 180

setpencolor 2

arc 180 50

cs

setpencolor 4

arc 360 100

fill

setpencolor 1

arc 360 75

fill

setpencolor 5

arc 360 50

fill

CS

SETPENCOLOR 12

REPEAT 4 [FD 100 RT 90]

PU

RT 45

FD 25

FILL

BACK 100

PD

LT 45

REPEAT 4 [FD 200 RT 90]

RT 45

FD 25

SETPENCOLOR 1

FILL

7. Let your creativity run wild and try a few coloredpicures of your own!

8. random function

cs repeat 30 [fd random 200 rt 90]

cs

setpensize 5

repeat 30 [setcolor random 16 fd random 200 rt 90]

cs

repeat 10 [

setcolor random 16

setpensize random 8

pu

fd random 100

pd

arc 360 random 100

rt 45

]

cs

repeat 10 [

setcolor random 16

setpensize random 8

rt random 360

arc 180 random 200

]

9. Logo Variables

print :variable

can be used to print the values on screen.

cs

setpensize 2

make "angle 0

repeat 10 [fd 50 rt :angle make "angle :angle + 7]

cs

setpensize 2

make "angle 0

repeat 45 [fd 50 rt :angle make "angle :angle + 7]

cs

setpensize 2

make "angle 0

repeat 500 [fd 5 rt :angle make "angle :angle + 7]

cs

pu

setpensize 2

setxy -200 -100

repeat 4 [

pu

fd 250

setcolor random 16

pd

arc 360 random 150

fill

rt 90

]

cs

make "angle 0

repeat 25 [

setpencolor random 16

fd :angle

back :angle

rt :angle

make "angle :angle + 7

]

cs

repeat 20 [

setcolor random 16

setpensize random 5

make "side random 200

repeat 4 [fd :side rt 90]

rt random 360

]

cs

make "size 250

setpensize 1

repeat 10 [

setpencolor random 16

arc 360 :size

make "size :size - 20

fill

]

cs

make "size 10

repeat 50 [

fd :size

rt 90

make "size :size + 5

]

cs

make "size 10

repeat 60 [

fd :size

rt 120

make "size :size + 7

]

cs

rt 90

setpensize 2

setpencolor random 16

make "size 1

repeat 60 [

arc 180 :size

pubk 4 pd

rt 180

make "size :size + 4

]

cs

setpensize 2

setpencolor random 16

make "turn 0

while :turn < 360 [

make "angle 0

while :angle < 180 [

fd 30

rt :angle

make "angle :angle + 5

]

pu home pd

make "turn :turn + 60

rt :turn

]

cs

setpensize 2

make "turn 0

while :turn < 360 [

setpencolor random 16

make "angle 0

while :angle < 180 [

fd 20

rt :angle

make "angle :angle + 5

]

pu home pd

lt :turn

make "angle 0

while :angle < 180 [

fd 20

lt :angle

make "angle :angle + 5

]

pu home pd

make "turn :turn + 120

rt :turn

]

10. Create your own artistic creations using the power of Variables!

11. Our own Procedures

- We can write our own procedures in Logo, then use them like in-built functions!