

I'll write four procedures, that call each other in a chain.
#Draw a circle in msw logo series
We're going to write a series of procedures that help us make a checkboard. After drawing the triangle, the turtle must move back to its original position.37 After drawing the square, the turtle must move to the start of the triangle. This requires different turnings of the turtle:120 3 0 9 0 12035Ī simple house is a square with a triangle on top of it. We want a procedure that draws a triangle with a flat base.start Now change circle_and_square so it uses the circle ntinued33 How would you write the procedure circle_and_square to make a drawing that looks like this? The triangle is the position of the turtle at the end of the procedure.Ĭircle_and_square home clean repeat 360 forward 50 repeat 3 left 90 forward 50 end If want to use the procedures some other time, you should save them. In the Editor "File" menu, select "Save and Exit" when you are finished. To add more procedures, or change one you've already written, click on the Edall button.Įnter a procedure for drawing a purple pentagon: to The new command (procedure) is for drawing a square itĬan be used just like other Logo commandsĪ "To Mode" window pops up after you type to You enter your procedure line by line, and type end or press Cancel to finish.Īfter typing repeat 4 endĬircle repeat 360 end toĪ procedure is a new command, built out of : other commands end 12/logo1Īdd a new command to Logo by writing a procedure. 12/logo1ġ.What will the following command draw? repeatĢ. repeat 4 the turtle forward 10 spaces, 4 times the turtle will move forward 40 spaces altogether move Get the turtle to do things many times, by using the repeat command. The turtle back to the center of the drawing areaĮxample Using Setpencolorforward 100 setpencolor 5 right 72 forward 100 setpencolor 14 right 72 forward 100 setpencolor 3 right 72 forward 100 setpencolor 2 right 72 forward 100īecause the turtle turned right 72 degrees 5 times, it made a pentagon The pen back down so drawing starts againĬolour of the turtles pen e.g. Turtle to pick up its pen so that when it moves no line is drawn Type these commands into the command input window, pressing after each commandįorward 100 right 90 forward 100 right 90 forward 100 right 90 forward 100 Turn the turtle to the right by 90 degrees.

Number is how many degrees the turtle will turn right e.g. Larger the number the farther the turtle will go if you use a large enough number, the turtle will walk off the screen and wrap around to the other side e.g.

MSW Logo, the turtle is drawn as a triangle Today, it is a picture on the Logo drawing area in Originally, the turtle was a robot that moved around the floor when the user typed Logo commands into a computer. MSW Logo in Actionmenus status window the turtle The MSWLogo directory contains an Examples/ folder (see end of these slides).6
#Draw a circle in msw logo windows
The program will be added to the start menu as "Microsoft Windows Logo". 12/logo1ĭouble click on mswlogo65.exe to start the installation. Great Logo Adventure An Introduction to MSW Logo Intro to CS. We're using MSW Logo, but there are many other Logo systems. Logo has been used in telecommunications, multimedia, and robotics.4

MSW Logo ExamplesĪ programming language developed at the MIT Artificial Intelligence Lab MIT (Mahayana Studies) 000-209 Introduction to Computer ScienceNovember 2005 - March 2006Īn introduction to Logo: drawing, moving, turning, repetition, and basic procedures.ġ.
