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