Question: Rect ( 1 6 5 , 9 0 , 7 0 , 4 0 , fill = 'saddleBrown' ) # hidden spill spill = Polygon

Rect(165,90,70,40, fill='saddleBrown')
# hidden spill
spill = Polygon(165,0,165,165,102,305,298,305,235,165,235,0,
fill=rgb(170,170,220), visible=False)
# liquid
liquid = Polygon(104,305,296,305,235,170,165,170, fill=rgb(170,170,220))
liquid.pressure =0
# bubbles
Circle(220,230,20, fill='white', opacity=10)
Circle(190,260,10, fill='white', opacity=10)
def onMousePress(mouseX, mouseY):
# Move the liquid's bottom up or down by 5 pixels, based on its current
# position.
### Place Your Code Here ###
# Every mouse press, the pressure should increase. When it gets to 10,
# the liquid should explode out of the flask.
### (HINT: We defined a custom property and spill variable above that
# might be helpful.)
### Place Your Code Here ###
pass

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!