Question: 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
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
