Answered step by step
Verified Expert Solution
Question
1 Approved Answer
app.background = 'mediumseaGreen' app.stepsPerSecond = 2 0 # glow rays = Star ( 2 0 0 , 2 0 0 , 1 7 5 ,
app.background 'mediumseaGreen'
app.stepsPerSecond
# glow
rays Star fill'lemonChiffon', roundness opacity
raysCover Polygon fill'mediumSeaGreen'
# triforce symbol
top RegularPolygon
fillgradientyellow 'darkGoldenrod', start'righttop'
border'goldenrod', borderWidth rotateAngle
bottomLeft RegularPolygon
fillgradientyellow 'darkGoldenrod',
start'righttop'
border'goldenrod', borderWidth rotateAngle
bottomRight RegularPolygon
fillgradientyellow 'darkGoldenrod',
start'righttop'
border'goldenrod', borderWidth rotateAngle
def onStep:
# If the top polygon's centerX is less than then increase
# its angle and centerX, centerY.
if topcenterX :
top.rotateAngle
top.centerX
top.centerY
# If the bottomLeft polygon's centerX is less than then rotate
# and move it up and right.
### HINT: For each polygon the angles will always change by the same
# number, and they will take the same number of steps to get to
# their final location.
### Place Your Code Here ###
elif bottomLeftcenterX :
bottomLeft.rotateAngle
bottomLeft.centerX
bottomLeft.centerY
# If the bottomRight polygon's centerX is greater than then rotate
# it and move it up and left.
### Place Your Code Here ###
elif bottomRightcenterX :
bottomRight.rotateAngle
bottomRight.centerX
bottomRight.centerY
# Otherwise, change the background, the fill for raysCover and
# change the rays opacity.
### Place Your Code Here ###
else:
app.background mediumSeaGreen 'seaGreen'
raysCover.fill mediumSeaGreen 'seaGreen'
rays.opacity
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started