Your goal in this program is to give your user the choice of shape color, size and type.
Start with a blank program in Scratch and name it “(your last name) Shape Chooser”. Like Milstead Shape Chooser but don’t use my name…
Click here for a demo of the completed program.
Programming skills:
-use a custom block (function) for each shape
-scroll down for a sample
-use the ask block to collect input
-use variables to store input
-use the say block to output information to the user
-pass the variables on to set shape color, size and type
-draw shapes by calling the function for the selected shape
Here’s the outline of your program:
1. ask the person for their name.
2. ask them what type of shape they want. Give them a choice of three different shapes.
3. ask them what size shape they want.
4. give them a choice of two colors. You pick the colors. Live it up!
5. output something like “Rod, here’s your red square!”
6. hide the sprite.
7. draw the shape.
8. tell them they can click the green flag for another shape.
9. erase the screen.
10. show the sprite again.
11. return the sprite to center (x=0 y=0)
12. set the sprite to point in direction of 90
What variables will you need?
-name
-shape type
-color
-size
What functions will you need?
-one for each shape
-search for “how to draw a (name your shape) in Scratch”
Sample function for a square:

Calling the function in your program:
