Answered step by step
Verified Expert Solution
Question
1 Approved Answer
app.background = 'lightSteelBlue' # custom app property app.isSnowing = False # These two lines drawn all the raindrops! rain = Line ( 2 0 0
app.background 'lightSteelBlue'
# custom app property
app.isSnowing False
# These two lines drawn all the raindrops!
rain Line fill'steelBlue', lineWidth dashes
Line fill'lightSteelBlue', lineWidth dashes
# plant
stem Line fill'darkGreen', lineWidth
leaf Oval fill'darkGreen', rotateAngle
leaf Oval fill'darkGreen', rotateAngle
ground Rect fill'darkGreen'
def onMousePressmouseX mouseY:
# Change the season.
### HINT: We defined a custom app property above that might be helpful!
### Place Your Code Here ###
pass
# This resets the ground and the plant.
ground.top
ground.height
stem.y
leafcenterY
leafcenterY
def onMouseMovemouseX mouseY:
# When it is snowing, the snow builds up Otherwise, the plant grows.
if appisSnowing True:
ground.top
ground.height
else:
stem.y
leafcenterY
leafcenterY
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