0% found this document useful (0 votes)
214 views32 pages

03 Mswlogo

The document provides instructions for using basic commands in the Logo programming language to control a turtle and draw shapes, including commands to move the turtle forward, backward, and rotate it left and right, as well as commands for setting the pen color and clearing the screen. It also demonstrates how to use repetition structures like REPEAT to efficiently draw polygons and circles by repeating movement and rotation commands.

Uploaded by

yuva nlp
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
214 views32 pages

03 Mswlogo

The document provides instructions for using basic commands in the Logo programming language to control a turtle and draw shapes, including commands to move the turtle forward, backward, and rotate it left and right, as well as commands for setting the pen color and clearing the screen. It also demonstrates how to use repetition structures like REPEAT to efficiently draw polygons and circles by repeating movement and rotation commands.

Uploaded by

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

MSW Logo

Master Korawit Sopha


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.
Screen
Display the output from command

Commander
Way to input the command
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
Basic Command
Command Abbreviation Response Syntax

Clear Screen CS Clear screen and CS


go back home
Clear Text CT Clear Text from CT
the commander
Clear - Clear Screen and Clear
stay there
Home - Go back home Home
Basic Command
Command Abbreviation Response Syntax

HideTurtle HT Clear screen and HT


go back home
ShowTurtle ST Clear Text from ST
the commander
Pen Erase PE Change pen to PE
eraser
Pen Paint PPT Change Eraser to PPT
Pen
Turtle and Pen
Setting pen and color
Setting pen and color
Setting pen and color

XXX = 0 - 255 SETPC [XXX XXX XXX]


Setting pen and color

XXX = 0 - 255 SETFC [XXX XXX XXX]


Setting pen and color

XXX = 0 - 255 SETSC [XXX XXX XXX]


MSW Logo interface
Basic Command : Go Forward 100
Basic Command : Rotate 90 Degrees
Draw “Square” (in a line)
Draw “Square” (with REPEAT)
Draw “Square” (with REPEAT)
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 … … …
2 Ways to Draw “Circle”

Use circle X Use Repeat … […]


REPEAT … [REPEAT … […] …]
Draw square twice, rotate 60 before 2nd round

Draw square 6 times, rotate 60 before 2nd – 6th round


REPEAT … [REPEAT … […] …]
Use Label […] to display Text
Try to solve these!
Try to solve these!
Try to solve these!
Try to solve these!
Try to solve these!
Try to solve these!
Try to solve these!
Try to solve these!
Try to solve these!

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy