Download presentation
Presentation is loading. Please wait.
Published byTheodora Long Modified over 9 years ago
1
Logo Programming Fall 2011 – Session 7 Programming Class Teacher: M. Taghizadeh Sobhan Highschool
2
Teacher: M. Taghizadeh – Sobhan Highschool Logo Programming Pen Up, Pen Down So far, all of our drawings have had two limitations. First, they are entirely made up of lines (no solid shapes). Second, all of the lines are connected. In this lesson, we will overcome these limitations. We will learn how to move the turtle without drawing a line. We will also learn how to fill in the outline of a shape with a solid color.
3
Teacher: M. Taghizadeh – Sobhan Highschool Logo Programming PEN UP Pen Up, Pen Down PU PEN DOWN PD
4
Teacher: M. Taghizadeh – Sobhan Highschool Logo Programming Pen Up, Pen Down Draw a dashed line
5
Teacher: M. Taghizadeh – Sobhan Highschool Logo Programming Pen Up, Pen Down Draw a dashed line REPEAT 10 [ FD 5 PU FD 5 PD ]
6
Teacher: M. Taghizadeh – Sobhan Highschool Logo Programming Pen Up, Pen Down Draw a dashed line in function TO DASH :LENGTH REPEAT :LENGTH/10 [ FD 5 PU FD 5 PD ] END DASH 300 1
7
Teacher: M. Taghizadeh – Sobhan Highschool Logo Programming Pen Up, Pen Down Draw a dashed line in function TO DASH :LENGTH :SIZE REPEAT INT(:LENGTH/(:SIZE*2)) [ FD :SIZE PU FD :SIZE PD ] END DASH 300 8 2
8
Teacher: M. Taghizadeh – Sobhan Highschool Logo Programming Pen Up, Pen Down INT Function REPEAT 10 [... ] REPEAT 20 [... ] REPEAT 17 [... ] REPEAT INTEGER [... ]
9
Teacher: M. Taghizadeh – Sobhan Highschool Logo Programming INT (17.7) 17 Pen Up, Pen Down INT Function INT ( NUMBER ) INTEGER OF NUMBER INT (13.33333) 13 INT (758.254) 758
10
Teacher: M. Taghizadeh – Sobhan Highschool Logo Programming Pen Up, Pen Down Draw a dashed line in function TO DASH :LENGTH :SIZE1 :SIZE2 REPEAT INT(:LENGTH/(:SIZE1+:SIZE2)) [ FD :SIZE1 PU FD :SIZE2 PD ] END DASH 300 5 10 3
11
Teacher: M. Taghizadeh – Sobhan Highschool Logo Programming Pen Up, Pen Down Draw a dashed rectangle TO DASH :LENGTH :SIZE REPEAT INT(:LENGTH/:SIZE*2) [ FD :SIZE PU FD :SIZE PD ] END REPEAT 4 [DASH 300 10 RT 90]
12
Teacher: M. Taghizadeh – Sobhan Highschool Logo Programming Pen Up, Pen Down Draw a series of rectangles 50 10
13
Teacher: M. Taghizadeh – Sobhan Highschool Logo Programming Pen Up, Pen Down Draw a series of rectangles TO SQUARE :LENGTH REPEAT 4 [ FD :LENGTH RT 90 ] END TO RECT_SERIES REPEAT 5 [ SQUARE 50 PU RT 90 FD 60 LT 90 PD ] END
14
Teacher: M. Taghizadeh – Sobhan Highschool Logo Programming Pen Up, Pen Down Draw a series of circles 50 10
15
Teacher: M. Taghizadeh – Sobhan Highschool Logo Programming Pen Up, Pen Down Draw a series of circles TO CIRCLES_SERIES REPEAT 5 [ CIRCLE 50 PU RT 90 FD 110 LT 90 PD ] END
16
Teacher: M. Taghizadeh – Sobhan Highschool Logo Programming Pen Up, Pen Down Draw a series of rectangles 100 60
17
Teacher: M. Taghizadeh – Sobhan Highschool Logo Programming Pen Up, Pen Down Draw a series of rectangles
18
Teacher: M. Taghizadeh – Sobhan Highschool Logo Programming Draw a series of circles Pen Up, Pen Down
19
Teacher: M. Taghizadeh – Sobhan Highschool Logo Programming Draw a series of circles Pen Up, Pen Down
20
Teacher: M. Taghizadeh – Sobhan Highschool Logo Programming Draw a series of 6-edges Pen Up, Pen Down HIVE
21
Teacher: M. Taghizadeh – Sobhan Highschool Logo Programming Procedure Saving Drawings BitmapSave As
22
Teacher: M. Taghizadeh – Sobhan Highschool Logo Programming Procedure Change Pen Color, Pen Size, Color Screen Set Pen Size Pen Color Screen Color
23
Logo Programming Fall 2011 – Session 7 The End Teacher: M. Taghizadeh Sobhan Highschool
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.