Logo Introduction - PowerPoint PPT Presentation

1 / 8
About This Presentation
Title:

Logo Introduction

Description:

We need a space then a value to tell the turtle how far to move or turn. Logo higher commands ... Gives us a decagon. Define shapes ... – PowerPoint PPT presentation

Number of Views:29
Avg rating:3.0/5.0
Slides: 9
Provided by: abbys
Category:

less

Transcript and Presenter's Notes

Title: Logo Introduction


1
Logo Introduction
turtle
Command bar
2
Logo basic commands
  • Forward fd
  • Right turn rt
  • Left Turn lt

We need a space then a value to tell the turtle
how far to move or turn
For example, the commands fd 100 rt 90 fd
100 Would give us
3
Logo higher commands
  • Clear screen cs
  • Hide turtle ht
  • Show turtle st
  • Pen up pu
  • Pen down pd
  • Pen erase pe
  • Pen normal ppt

Means we can move and start a new drawing.
4
Repeat commands
  • These make life easier.
  • A square could now be written using a single line
    of text.
  • repeat 4fd 100 rt 90

5
Polygons
  • The external angles of any polygon add up to
    360.
  • For a regular polygon we can write
  • Where sides is the number of sides required.

Repeat sidesfd 100 rt 360/sides
6
Polgons
  • For example
  • repeat 10fd 50 rt 360/10
  • I made the lengths shorter so it fit on the page!

Gives us a decagon.
7
Define shapes
  • Another short cut lets us define shapes to re-use
    them quickly.
  • We type to square in the command bar
  • A pop up then allows us to write the rule to draw
    a square.

From now on I can draw a square just by writing
square
8
Patterns
  • Patterns can quickly be made using defined
    polygons and repeat functions.
  • We can also change the pen size and colour!
Write a Comment
User Comments (0)
About PowerShow.com