Turtles and Geometry

Similar documents
An Introduction to Agent-Based Modeling Unit 2: Building a Simple Model

AutoCAD LT 2012 Tutorial. Randy H. Shih Oregon Institute of Technology SDC PUBLICATIONS. Schroff Development Corporation

with MultiMedia CD Randy H. Shih Jack Zecher SDC PUBLICATIONS Schroff Development Corporation

Introduction to Turtle Art

Tutorial 3: Drawing Objects in AutoCAD 2011

Yr 4: Unit 4E Modelling effects on screen

AutoCAD LT 2009 Tutorial

The Revolve Feature and Assembly Modeling

AutoCAD Tutorial First Level. 2D Fundamentals. Randy H. Shih SDC. Better Textbooks. Lower Prices.

SDC. AutoCAD LT 2007 Tutorial. Randy H. Shih. Schroff Development Corporation Oregon Institute of Technology

1 Sketching. Introduction

J. La Favre Fusion 360 Lesson 5 April 24, 2017

Volume of Revolution Investigation

Drawing with precision

House Design Tutorial

Drawing 8e CAD#11: View Tutorial 8e: Circles, Arcs, Ellipses, Rotate, Explode, & More Dimensions Objective: Design a wing of the Guggenheim Museum.

Module 5 Exploring Control

Quilt Pro 6 Lesson Quilt in a Quilt

House Design Tutorial

Chapter 5 Sectional Views

Assignment 5 due Monday, May 7

Unit. Drawing Accurately OVERVIEW OBJECTIVES INTRODUCTION 8-1

Getting Started. Before You Begin, make sure you customized the following settings:

Introduction to Parametric Modeling AEROPLANE. Design & Communication Graphics 1

Introduction to CATIA V5

When you complete this assignment you will:

Alternatively, the solid section can be made with open line sketch and adding thickness by Thicken Sketch.

Tutorial 1 getting started with the CNCSimulator Pro

SolidWorks Reference Geometry

Basic Mathematics Review 5232

House Design Tutorial

House Design Tutorial

Getting Started. Right click on Lateral Workplane. Left Click on New Sketch

SolidWorks Tutorial 1. Axis

Ansoft Designer Tutorial ECE 584 October, 2004

Geometer s Skethchpad 7th Grade Guide to Learning Geometry

Making a Drawing Template

Step 1: Create A New Photoshop Document

House Design Tutorial

Working With Drawing Views-I

8 Working Drawings in AutoCAD

Meteor Game for Multimedia Fusion 1.5

Principles and Practice

Apex v5 Assessor Introductory Tutorial

Making Your World with the Aurora Toolset

The Basic RAW Image Processing Workflow In PSE 2018

Geometer s Skethchpad 8th Grade Guide to Learning Geometry

Chief Architect X3 Training Series. Layers and Layer Sets

ADD A REALISTIC WATER REFLECTION

The original image. Let s get started! The final light rays effect. Photoshop adds a new layer named Layer 1 above the Background layer.

SAVING, LOADING AND REUSING LAYER STYLES

AEROPLANE. Create a New Folder in your chosen location called Aeroplane. The four parts that make up the project will be saved here.

06/17/02 Page 1 of 12

Input of Precise Geometric Data

GAME:IT Junior Bouncing Ball

Scratch for Beginners Workbook

STEP BY STEP GUIDE FOR CREATING A CUBE IN FREECAD. STEP 1. Chose Create a new Empty Document Part Design Create a New Sketch XY- Plane and click OK.

Geometer s Sketchpad Version 4

A Quick Spin on Autodesk Revit Building

GAME:IT Junior Bouncing Ball

Creating Photo Borders With Photoshop Brushes

Modeling Basic Mechanical Components #1 Tie-Wrap Clip

Lesson 4 Extrusions OBJECTIVES. Extrusions

METBD 110 Hands-On 17 Dimensioning Sketches

Introduction to programming with Fable

Computer Programming

Constructing a Wedge Die

Introduction to Simulink Assignment Companion Document

Okay, that s enough talking. Let s get things started. Here s the photo I m going to be using in this tutorial: The original photo.

AP Art History Flashcards Program

Assignment 5 CAD Mechanical Part 1

Solidworks tutorial. 3d sketch project. A u t h o r : M. G h a s e m i. C o n t a c t u s : i n f s o l i d w o r k s a d v i s o r.

Solidworks tutorial. drawing. A u t h o r : M. G h a s e m i. C o n t a c t u s : i n f s o l i d w o r k s a d v i s o r.

Using Siemens NX 11 Software. The connecting rod

Assignment 12 CAD Mechanical Part 2

CHAPTER 15. Cross Section Sheets. None, except batch processing of an input file.

Making an Architectural Drawing Template

Question: How can I change the price of whole groups of inventory simultaneously?

How Tall Are You? Introducing Functions

Star Defender. Section 1

COMPUTING CURRICULUM TOOLKIT

GETTING STARTED MAKING A NEW DOCUMENT

Add A Transparent Text Area To An Image With Photoshop

How to create a cove for cove lighting in DIALux In this tutorial you will learn how to make a cove similar to the one in the following image

Chapter 6 Title Blocks

Lesson 10: Loft Features

Introduction to Autodesk Inventor for F1 in Schools (Australian Version)

Making Your World - the world building tutorial

Open the Tech Toys Scratch project. Your club leader will give you a copy of this project, or you can open it online at jumpto.cc/toys-go.

A quick overview of the basics of my workflow in. Those gaps in Photoshop s Histogram indicate missing information.

Ball Valve Assembly. On completion of the assembly, we will create the exploded view as shown on the right.

Excel Lab 2: Plots of Data Sets

Lost in Space. Introduction. Scratch. You are going to learn how to program your own animation! Activity Checklist.

2809 CAD TRAINING: Part 1 Sketching and Making 3D Parts. Contents

EG1003 Help and How To s: Revit Tutorial

Step 1: Open A Photo To Place Inside Your Text

Activity 1 Modeling a Plastic Part

Quintic Software Tutorial 3

Architecture 2012 Fundamentals

Transcription:

Turtles and Geometry In this project, you explore geometric shapes with the help of the turtle. Remember: if you must leave your activity before the, remember to save your project. Step 1: Drawing with the turtle Step 2: Drawing by command Step 3: Doing a 360 Step 4: Circles Step 5: Procedures Step 6: Please repeat Step 7: Exploring more patterns Step 1: Drawing with the turtle The turtle is a very talented creature. Not only can you use it to create animation, but it can draw, too. Click on the Create a Turtle tool on the Toolbar to hatch a new turtle: Click on the screen to place the turtle. MicroWorlds comes with a built-in language you can use to talk to the turtle. Click in the Command center, the space below the white page, and type this: The turtle moves turtle steps, drawing a line as it goes. Now type: The turtle turns degrees (without moving forward) a right angle. You can put these two instructions together, to get: fd 100 rt 90 (Fd is short for forward. Rt is short for right.) Forward and right each take one input a number. You probably now have two lines that look like this: Right-click on the turtle and select Open Backpack. The turtle s State tab should be showing. Check the turtle s starting xcor and ycor to record the turtle s starting position (just in case you need to start over again and want to reset the turtle to this position). The settings may look like this: As you can see, this looks like the beginning of a square. Try to finish the square. (Hint: A square has 4 equal sides and 4 equal corners. You already have two lines and two turns or corners.) All turtle s have a pen. The pen s state is shown in the State tab. Usually, the pen is up. To put it down, click Down (pd). In order to get the turtle to draw, you need to give it instructions in a language that it understands.

Step 2: Drawing by Command Here are two ways you can write the instructions to draw a square: or whatever number you want to use Or: repeat 4 [ ] Repeat is another built-in word in MicroWorlds. It needs two inputs. The first input is always a number. The second input must be a list of instructions to run, and it s always enclosed in square brackets []. The number tells MicroWorlds how many times to run the list of instructions. The input to forward sets the length of the sides. Move the turtle around and draw some different sized squares. Is your screen getting cluttered? If you want to clear the screen graphics without moving the turtle, type: clean To clear the screen graphics and set the turtle to the middle of the screen, type: stands for clear graphics When a turtle draws a square it s up facing in the exact same direction it was facing when it started. Each turn is 1/4 th of the way around. So, if the turtle turns three times, on each turn it turns 1/3 rd of the way around. But how much is all the way around? Skateboarders talk about "doing a 360" when actually they mean they ve turned all the way around. They up facing in the exact same direction as when they started. In doing so, they ve turned 360 degrees. That s just what the turtle does. When a turtle draws a square, it turns right 90 four times. 4 x 90 = 360 When a turtle draws a triangle, each time it turns it turns right 360 x 1/ 3 or 120. repeat 3 [fd 100 rt 120] Try these: 1) Draw some different sized triangles. Remember, the input to forward sets the length of the sides. 2) Here are the instructions to draw another geometric shape. What do you think this shape is? repeat 6 [fd 100 rt 60] Now try to draw these other shapes: pentagon octagon Step 3: Doing a 360 Try drawing an equilateral triangle using repeat. Here are some hints: 1) Since a triangle has 3 sides and 3 corners, you probably realize that you need to repeat a set of instructions 3 times. repeat 3 [???] 2) Use forward to draw a side. The input to forward determines the length of the side. An equilateral triangle can have sides that are of any length (as long as they are all equal). repeat 3 [fd 100???] 3) Use right to create a corner. How much should the turtle turn at each corner in order to make a triangle?

Step 4: Circles Label the button so you know what it does. You can use buttons to help you explore geometry. In the Pages menu, select New Page to add a second page to the project. Set the Do It mode to Forever. Click OK. Put the turtle s pen down in the State tab or by typing, in the Command center: pd Hatch a new turtle. Create a button. First, click the Button tool on the Toolbar: Then click on the page. A dialog box opens. The instruction is executed when the button is clicked. In the instruction line, type: forward 1 The label shows on the button face. Give the button a label that explains what this button does. (The label can be anything, but the instruction must be exactly as shown above.) In this case, the label could be Forward a Little Set the Do It mode to Forever. Click on the Forward button. The turtle draws a straight line. When the button is clicked, the turtle goes forward one turtle step, but it does this many times (forever or, at least until the button is clicked again.). Click the button to stop it. Then click the other button - Turn a little. The turtle spins in one spot. It turns right a little (1 degree) many times. Now, as the turtle is spinning, click the Forward button. What happens? When the turtle moves forward a little and turns a little and does each of these actions many times, it draws a circle. Drawing a circle is like drawing a geometric shape with an infinite number of sides and turns. In MicroWorlds, this means repeating forward and right a large number of times (since there s no infinity command). Here s a way to draw a circle using commands: repeat 360 [fd 1 rt 1] Click OK. You should see a button on your page. If you can t read the label, select the button by dragging around it with the mouse or by pressing CTRL and clicking on it. Then drag one of the corners to make the button larger. Now create a second button, following the steps above. This time, in the instruction line, type: right 1. Try changing the input to forward. Try: repeat 360 [fd 10 rt 1] Can you explain what happened? (If not, the answer is at the of this tutorial.) Circles can also go to the left. repeat 360 [fd 1 left 1] If your page is getting too messy, click on the button tool in the Toolbar and click on the page. The button dialog opens. In the instruction line, type: Leave the Mode set to Once. Try the button.

Step 5: Procedures Not only does MicroWorlds contain built-in words, but you can also add new words to its vocabulary by writing procedures. It would be useful to have a command that draws a circle. So, add one! Right-click on the turtle and select Open Backpack. Step 6: Please repeat Geometric shapes can be used to create some interesting designs and patterns. First, define a square procedure, if you haven t done so already: to square repeat 4 [fd 100 rt 90] In the Command center, type: square Click on the Procedures tab. Next, turn the turtle and draw the same size square again. For example: rt 30 square A turtle s Procedures tab is the place where you define new words for that specific turtle to know. It contains the turtle s private list of words. To define a command that draws a circle to the right, type: to rightcircle repeat 360 [fd 1 rt 1] Repeat these two lines until the turtle is heading in the same direction as it was when it started. Procedures always start with to and the name of the procedure. They always finish with the word. End must be on its own line, so you must press Enter after you type it. There are a couple of rules for naming procedures. You can name a procedure whatever you like as long as: - it s a single word (rightcircle not right circle); and, - it is not a word that MicroWorlds already knows (for example, not forward). Now type rightcircle in the command center. The turtle should draw a circle. (If you get this message: I don t know how to rightcircle. Open the turtle s backpack and check that you typed the procedure correctly.) Write procedures for other geometric shapes, such as a square or a triangle. Remember to always start the procedure with to and it with the word. Try using repeat to run these two lines. First, clear the screen: How many times do you need to repeat these two lines? Try: repeat 12 [rt 30 square] Do you know why you repeat 12 times? Use the same technique to create a design using another geometric shape, such as a triangle or a pentagon.

Step 7: Exploring more patterns As you can see, you can use your procedures with repeat, forward, back, right, and left to create interesting patterns. For example, define a leftcircle procedure: (Answer to the question in Step 4: The turtle wrapped around the screen while it was drawing the circle.) to leftcircle repeat 360 [fd 1 lt 1] Now try: repeat 18 [rightcircle leftcircle rt 10] Think about why you get this effect. Why does it only need to repeat 18 times? What if you used a different shape in the repeat instruction, for example: repeat 18 [rightsquare leftsquare rt 10] (Make sure you have a rightsquare procedure and a leftsquare procedure. You have to create these yourself.) Do you get the same effect? Try other shapes, too. Here s another way to create patterns. repeat 8 [rightsquare bk 20 leftsquare fd 20 rt 45] To understand what is happening, run the instruction once. rightsquare bk 20 leftsquare fd 20 rt 45 Experiment with other shapes. Remember to define the procedures you need first. Try using different pen colors to see if this changes the effect. Use setc (set color) to change the pen color. setc "blue Remember to use a quotation mark before the name of the color. Here s another type of pattern: repeat 180 [fd 100 bk 100 rt 2] Now you have all the tools you need to experiment with geometric shapes. Use them to create other types of patterns.