Question: PROBLEM 3 : FUN PINWHEEL Description: write the function that draws and fill the fun pinwheel . Requirements: This function is a little trickier as
PROBLEM : FUN PINWHEEL
Description: write the function that draws and fill the fun pinwheel
Requirements:
This function is a little trickier as it requires alternating between the two parameter colors, color and color
The general strategy is the following:
Start with your drawpinwheel function from Problem
During each iteration of the loop, decide which color to set the turtle to using the color function.
On even iterations, use color
On odd iterations, use color
Use an ifelse statement to do the decision making
After deciding the color, surround a call to drawtriangle with beginfill andendfill so that the
triangle is filled in with the right color.
Feel free to use similar examples we covered in class as a resource.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
