Thanks to visit codestin.com
Credit goes to www.scribd.com

100% found this document useful (1 vote)
3K views2 pages

MSW Logo Examples

The document contains examples of Logo code for drawing basic shapes like squares, triangles, pentagons and hexagons using the repeat and turn commands. More complex examples show nested shapes like triangles within a larger triangle and concentric circles. The final examples demonstrate more elaborate designs using repetition and random parameters to create spiral, starburst and other patterns.

Uploaded by

nikhu_shukla
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
3K views2 pages

MSW Logo Examples

The document contains examples of Logo code for drawing basic shapes like squares, triangles, pentagons and hexagons using the repeat and turn commands. More complex examples show nested shapes like triangles within a larger triangle and concentric circles. The final examples demonstrate more elaborate designs using repetition and random parameters to create spiral, starburst and other patterns.

Uploaded by

nikhu_shukla
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

EX 1

square- REPEAT 4 [ FD 150 RT 90]


Circle- circle
Pentagon- REPEAT 5 [ FD 150 RT 144]
Hexagone- REPEAT 6 [ FD 150 RT 160]
EX 2
Pen up - pu
Pen down-pd
line-FD 120
clear screen-cs
rectangle-FD 30 RT 90 FD 150 RT 90 FD 30 RT 90 FD 150
rectangle with repeat command-repeat 2 [FD 30 RT 90 FD 150 RT 90]
EX 3
square- REPEAT 4 [ FD 150 RT 90]
EX 4
Circle- circle
Pentagon- REPEAT 5 [ FD 150 RT 144]
Hexagone- REPEAT 6 [ FD 150 RT 160]
EX 5
Draw triangle
fd
rt
fd
rt
fd

150
120
150
120
150

EX 6
Triangles within Trigangle
fd 150
rt 120
fd 150
rt 120
fd 150
fd 20
rt 120
fd 170
rt 120
fd 170
rt 120
fd 170
EX 7
Draw Circles
repeat 360 [
repeat 360 [
repeat 360 [
repeat 360 [
repeat 360 [
repeat 360 [
repeat 360 [

within Circles
fd 2 rt 1]
fd 2 rt 2]
fd 2 rt 3]
fd 2 rt 3]
fd 3 rt 3]
fd 4 rt 3]
fd 5 rt 3]

EX 8
Draw Rectangle
fd 150 rt 90

fd 80 rt 90
fd 150 rt 90
fd 80 rt 90
EX 9
Triangel, Square, Pentagon, Hexagon all together
repeat
repeat
repeat
repeat

3
4
5
6

[fd
[fd
[fd
[fd

100
100
100
100

rt
rt
rt
rt

120]
90]
360/5]
360/6]

EX 10
Some special designs
repeat 5 [FD 120 RT 144]
repeat 5 [FD 220 RT 144]
repeat 18 [FD 220 RT 160]
repeat 50 [FD 200 RT 80 FD 200 RT 90]
repeat 180 [FD 72 RT 47 CIRCLE 40]
repeat 50 [circle 1235 fd 79 rt 78]

You might also like