Answered step by step
Verified Expert Solution
Link Copied!

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(220,215,205)
# casing
Rect(50,300,300,100, fill=rgb(55,55,55))
Rect(80,315,240,30, fill='silver')
Label('DO NOT TOUCH', 200,330, size=25)
meteorite = Polygon(150,300,120,250,140,220,170,170,210,150,260,190,
270,230,300,260,280,280,240,300,
fill=gradient(rgb(110,185,160), rgb(10,50,45),
start='left-top'))
cover = Rect(50,75,300,225, fill=gradient('white', 'azure', start='left-top'),
opacity=20)
Rect(50,75,300,275, fill=None, border=rgb(90,80,80))
alarm = Polygon(150,0,250,0,230,40,170,40,
fill=gradient('lightGrey', 'darkGrey'))
light = Polygon(170,40,230,40,320,300,80,300, fill='lightYellow',
opacity=20)
alarmCover = Rect(0,0,400,400, fill='red', opacity=50, visible=False)
alarmLights = Star(200,0,500,10, fill='white', opacity=50, visible=False,
roundness=20)
hand = Oval(25,50,50,50, fill='whiteSmoke')
def onMouseMove(mouseX, 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 5 degree angle.)
### Place Your Code Here ###
pass

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

9th Edition

0135188148, 978-0135188149, 9781642087611

More Books

Students also viewed these Databases questions

Question

=+3. How will you measure action objective?

Answered: 1 week ago

Question

=+2. What research methodologies would be most effective?

Answered: 1 week ago

Question

=+ Focus groups with representative publics. Which publics?

Answered: 1 week ago