Goal: Draw squares of different sizes, colors, and thicknesses using sliders.

Notes We can control other qualities of a square with sliders:
- Make a new slider called whatcolor. Set its minimum to 0 and its maximum to 140. (There are 140 colors in MicroWorlds. This slider will be used to set the turtle's pen color.)
- Make another slider called howthick. Set its minimum to 1 and its maximum to 100. (This slider will be used to set the thickness of the turtle's pen.
- In the square procedure, setc whatcolor sets the turtle's color to the number on the whatcolor slider.
- Setpensize howthick sets the turtle's pen size to the number on the howthick slider.
- Now you can change the values on one, two, or all three sliders before clicking the square button.
What If?
Try setting the sliders to different numbers.
Challenge
Drag the turtle to different positions to create a scene out of squares.
|