Home
Project Folders
Teacher Resources
Student Resources
En ESPAÑOL
How Do I?
Literacy
MWForum
Site Map
Search
Our Team

squares 1 2 3 4 5 6 7
Squares 3
Try It
20 KB


Goal:   Draw squares of different sizes.


Screenshot


Code
Project Map

code


Notes

We can make squares of any size if we control the length of the sides with a slider.

  1. Make a slider and name it howbig.   Set its minimum to 10 and its maximum to a large number such as 160.

  2. In the square procedure, fd howbig moves the turtle forward the number of tiny steps on the slider.




What If?
Try setting the slider to different numbers.


Challenge
Can you add more sliders to control the color and pensize? (You'll need to change the square procedure to include the names of those sliders.)




© copyright 2001 - 2008  OpenWorld Learning.   All rights reserved.