MSW Logo - WordPress.com · 2015. 9. 3. · HideTurtle HT Clear screen and go back home HT...

32
MSW Logo Master Korawit Sopha

Transcript of MSW Logo - WordPress.com · 2015. 9. 3. · HideTurtle HT Clear screen and go back home HT...

Page 1: MSW Logo - WordPress.com · 2015. 9. 3. · HideTurtle HT Clear screen and go back home HT ShowTurtle ST Clear Text from the commander ST Pen Erase PE Change pen to eraser PE Pen

MSW Logo

Master Korawit Sopha

Page 2: MSW Logo - WordPress.com · 2015. 9. 3. · HideTurtle HT Clear screen and go back home HT ShowTurtle ST Clear Text from the commander ST Pen Erase PE Change pen to eraser PE Pen

Logo programming

If Logo is not already on your computer,

you can get it for free from its makers at

www.softronix.com/mswlogo.html

The installation process puts a Logo icon

on your computer desktop.

Page 3: MSW Logo - WordPress.com · 2015. 9. 3. · HideTurtle HT Clear screen and go back home HT ShowTurtle ST Clear Text from the commander ST Pen Erase PE Change pen to eraser PE Pen

Screen

Display the output from command

Commander

Way to input the command

Page 4: MSW Logo - WordPress.com · 2015. 9. 3. · HideTurtle HT Clear screen and go back home HT ShowTurtle ST Clear Text from the commander ST Pen Erase PE Change pen to eraser PE Pen

Basic Command

Command Abbreviation Response Syntax

Forward FD Go forward FD X

Ex: FD 100

Back BK Go back way BK X

Ex: BK 100

Left LT Rotate Left LT Y

Ex: LT 90

Right RT Rotate Right RT Y

Ex: RT 90

Page 5: MSW Logo - WordPress.com · 2015. 9. 3. · HideTurtle HT Clear screen and go back home HT ShowTurtle ST Clear Text from the commander ST Pen Erase PE Change pen to eraser PE Pen

Basic Command

Command Abbreviation Response Syntax

Clear Screen CS Clear screen and

go back home

CS

Clear Text CT Clear Text from

the commander

CT

Clear - Clear Screen and

stay there

Clear

Home - Go back home Home

Page 6: MSW Logo - WordPress.com · 2015. 9. 3. · HideTurtle HT Clear screen and go back home HT ShowTurtle ST Clear Text from the commander ST Pen Erase PE Change pen to eraser PE Pen

Basic Command

Command Abbreviation Response Syntax

HideTurtle HT Clear screen and

go back home

HT

ShowTurtle ST Clear Text from

the commander

ST

Pen Erase PE Change pen to

eraser

PE

Pen Paint PPT Change Eraser to

Pen

PPT

Page 7: MSW Logo - WordPress.com · 2015. 9. 3. · HideTurtle HT Clear screen and go back home HT ShowTurtle ST Clear Text from the commander ST Pen Erase PE Change pen to eraser PE Pen

Turtle and Pen

Page 8: MSW Logo - WordPress.com · 2015. 9. 3. · HideTurtle HT Clear screen and go back home HT ShowTurtle ST Clear Text from the commander ST Pen Erase PE Change pen to eraser PE Pen

Setting pen and color

Page 9: MSW Logo - WordPress.com · 2015. 9. 3. · HideTurtle HT Clear screen and go back home HT ShowTurtle ST Clear Text from the commander ST Pen Erase PE Change pen to eraser PE Pen

Setting pen and color

Page 10: MSW Logo - WordPress.com · 2015. 9. 3. · HideTurtle HT Clear screen and go back home HT ShowTurtle ST Clear Text from the commander ST Pen Erase PE Change pen to eraser PE Pen

Setting pen and color

XXX = 0 - 255 SETPC [XXX XXX XXX]

Page 11: MSW Logo - WordPress.com · 2015. 9. 3. · HideTurtle HT Clear screen and go back home HT ShowTurtle ST Clear Text from the commander ST Pen Erase PE Change pen to eraser PE Pen

Setting pen and color

XXX = 0 - 255 SETFC [XXX XXX XXX]

Page 12: MSW Logo - WordPress.com · 2015. 9. 3. · HideTurtle HT Clear screen and go back home HT ShowTurtle ST Clear Text from the commander ST Pen Erase PE Change pen to eraser PE Pen

Setting pen and color

XXX = 0 - 255 SETSC [XXX XXX XXX]

Page 13: MSW Logo - WordPress.com · 2015. 9. 3. · HideTurtle HT Clear screen and go back home HT ShowTurtle ST Clear Text from the commander ST Pen Erase PE Change pen to eraser PE Pen

MSW Logo interface

Page 14: MSW Logo - WordPress.com · 2015. 9. 3. · HideTurtle HT Clear screen and go back home HT ShowTurtle ST Clear Text from the commander ST Pen Erase PE Change pen to eraser PE Pen

Basic Command : Go Forward 100

Page 15: MSW Logo - WordPress.com · 2015. 9. 3. · HideTurtle HT Clear screen and go back home HT ShowTurtle ST Clear Text from the commander ST Pen Erase PE Change pen to eraser PE Pen

Basic Command : Rotate 90 Degrees

Page 16: MSW Logo - WordPress.com · 2015. 9. 3. · HideTurtle HT Clear screen and go back home HT ShowTurtle ST Clear Text from the commander ST Pen Erase PE Change pen to eraser PE Pen

Draw “Square” (in a line)

Page 17: MSW Logo - WordPress.com · 2015. 9. 3. · HideTurtle HT Clear screen and go back home HT ShowTurtle ST Clear Text from the commander ST Pen Erase PE Change pen to eraser PE Pen

Draw “Square” (with REPEAT)

Page 18: MSW Logo - WordPress.com · 2015. 9. 3. · HideTurtle HT Clear screen and go back home HT ShowTurtle ST Clear Text from the commander ST Pen Erase PE Change pen to eraser PE Pen

Draw “Square” (with REPEAT)

Page 19: MSW Logo - WordPress.com · 2015. 9. 3. · HideTurtle HT Clear screen and go back home HT ShowTurtle ST Clear Text from the commander ST Pen Erase PE Change pen to eraser PE Pen

Draw “Polygon” (360 Divided by Sides)

Picture Name Sides Degrees Repeat

Triangle 3 120 Repeat 3 [fd 100 rt 120]

Pentagon 5 72 Repeat 5 [fd 100 rt 72]

Hexagon 6 60 Repeat 6 [fd 100 rt 60]

Octagon 8 45 Repeat 8 [fd 100 rt 45]

Circle … … …

Page 20: MSW Logo - WordPress.com · 2015. 9. 3. · HideTurtle HT Clear screen and go back home HT ShowTurtle ST Clear Text from the commander ST Pen Erase PE Change pen to eraser PE Pen

2 Ways to Draw “Circle”

Use circle X Use Repeat … […]

Page 21: MSW Logo - WordPress.com · 2015. 9. 3. · HideTurtle HT Clear screen and go back home HT ShowTurtle ST Clear Text from the commander ST Pen Erase PE Change pen to eraser PE Pen

REPEAT … [REPEAT … […] …]

Draw square twice, rotate 60 before 2nd

round

Draw square 6 times, rotate 60 before 2nd

– 6th

round

Page 22: MSW Logo - WordPress.com · 2015. 9. 3. · HideTurtle HT Clear screen and go back home HT ShowTurtle ST Clear Text from the commander ST Pen Erase PE Change pen to eraser PE Pen

REPEAT … [REPEAT … […] …]

Page 23: MSW Logo - WordPress.com · 2015. 9. 3. · HideTurtle HT Clear screen and go back home HT ShowTurtle ST Clear Text from the commander ST Pen Erase PE Change pen to eraser PE Pen

Use Label […] to display Text

Page 24: MSW Logo - WordPress.com · 2015. 9. 3. · HideTurtle HT Clear screen and go back home HT ShowTurtle ST Clear Text from the commander ST Pen Erase PE Change pen to eraser PE Pen

Try to solve these!

Page 25: MSW Logo - WordPress.com · 2015. 9. 3. · HideTurtle HT Clear screen and go back home HT ShowTurtle ST Clear Text from the commander ST Pen Erase PE Change pen to eraser PE Pen

Try to solve these!

Page 26: MSW Logo - WordPress.com · 2015. 9. 3. · HideTurtle HT Clear screen and go back home HT ShowTurtle ST Clear Text from the commander ST Pen Erase PE Change pen to eraser PE Pen

Try to solve these!

Page 27: MSW Logo - WordPress.com · 2015. 9. 3. · HideTurtle HT Clear screen and go back home HT ShowTurtle ST Clear Text from the commander ST Pen Erase PE Change pen to eraser PE Pen

Try to solve these!

Page 28: MSW Logo - WordPress.com · 2015. 9. 3. · HideTurtle HT Clear screen and go back home HT ShowTurtle ST Clear Text from the commander ST Pen Erase PE Change pen to eraser PE Pen

Try to solve these!

Page 29: MSW Logo - WordPress.com · 2015. 9. 3. · HideTurtle HT Clear screen and go back home HT ShowTurtle ST Clear Text from the commander ST Pen Erase PE Change pen to eraser PE Pen

Try to solve these!

Page 30: MSW Logo - WordPress.com · 2015. 9. 3. · HideTurtle HT Clear screen and go back home HT ShowTurtle ST Clear Text from the commander ST Pen Erase PE Change pen to eraser PE Pen

Try to solve these!

Page 31: MSW Logo - WordPress.com · 2015. 9. 3. · HideTurtle HT Clear screen and go back home HT ShowTurtle ST Clear Text from the commander ST Pen Erase PE Change pen to eraser PE Pen

Try to solve these!

Page 32: MSW Logo - WordPress.com · 2015. 9. 3. · HideTurtle HT Clear screen and go back home HT ShowTurtle ST Clear Text from the commander ST Pen Erase PE Change pen to eraser PE Pen

Try to solve these!