Answered step by step
Verified Expert Solution
Question
1 Approved Answer
app.background = rgb ( 2 2 0 , 2 1 5 , 2 0 5 ) # casing Rect ( 5 0 , 3 0
app.background rgb # casing Rect fillrgb Rect fill'silver' LabelDO NOT TOUCH', size meteorite Polygon fillgradientrgb rgb start'lefttop' cover Rect fillgradientwhite 'azure', start'lefttop' opacity Rect fillNone, borderrgb alarm Polygon fillgradientlightGrey 'darkGrey' light Polygon fill'lightYellow', opacity alarmCover Rect fill'red', opacity visibleFalse alarmLights Star fill'white', opacity visibleFalse, roundness hand Oval fill'whiteSmoke' def onMouseMovemouseX mouseY: hand.centerX mouseX hand.centerY mouseY # If the hand cursor intersects the meteorite, show the alarm and rotate # the alarm lights. Otherwise, restore the original background. ### HINT: The alarm light rotates by a degree angle. ### Place Your Code Here ### pass
app.background rgb
# casing
Rect fillrgb
Rect fill'silver'
LabelDO NOT TOUCH', size
meteorite Polygon
fillgradientrgb rgb
start'lefttop'
cover Rect fillgradientwhite 'azure', start'lefttop'
opacity
Rect fillNone, borderrgb
alarm Polygon
fillgradientlightGrey 'darkGrey'
light Polygon fill'lightYellow',
opacity
alarmCover Rect fill'red', opacity visibleFalse
alarmLights Star fill'white', opacity visibleFalse,
roundness
hand Oval fill'whiteSmoke'
def onMouseMovemouseX mouseY:
hand.centerX mouseX
hand.centerY mouseY
# If the hand cursor intersects the meteorite, show the alarm and rotate
# the alarm lights. Otherwise, restore the original background.
### HINT: The alarm light rotates by a degree angle.
### Place Your Code Here ###
pass
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