Question
app.background = 'black' leftVolumeBar = Line(75, 300, 75, 400, lineWidth=100, dashes=True, fill=gradient('black', 'red', 'orange', 'yellow', 'lawnGreen', start='top')) centerVolumeBar = Line(200, 300, 200, 400, lineWidth=100, dashes=True,
app.background = 'black'
leftVolumeBar = Line(75, 300, 75, 400, lineWidth=100, dashes=True, fill=gradient('black', 'red', 'orange', 'yellow', 'lawnGreen', start='top')) centerVolumeBar = Line(200, 300, 200, 400, lineWidth=100, dashes=True, fill=gradient('black', 'red', 'orange', 'yellow', 'lawnGreen', start='top')) rightVolumeBar = Line(325, 300, 325, 400, lineWidth=100, dashes=True, fill=gradient('black', 'red', 'orange', 'yellow', 'lawnGreen', start='top'))
def setVolumeBars(newLeftBarY1, newCenterBarY1, newRightBarY1): # Set each volume bar to new y1 value. leftVolumeBar.y1 = newLeftBarY1 centerVolumeBar.y1 = newCenterBarY1 rightVolumeBar.y1 = newRightBarY1
def onMouseMove(mouseX, mouseY): # Change the height of volume bars based on which volume bar the mouse is above. ### (HINT: The volume bars are set at either a height of mouseY or # 400 - mouseY.) ### Place Your Code Here ###
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