Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Rect ( 0 , 0 , 4 0 0 , 4 0 0 , fill = 'lavender' ) def onMousePress ( mouseX , mouseY )

Rect(0,0,400,400, fill='lavender')
def onMousePress(mouseX, mouseY):
# Uncomment the local variables below so your code doesn't crash.
### Fix Your Code Here ###
color1= rgb(mouseX //2, mouseY //2,255)
color2= rgb(255, mouseX //2, mouseY //2)
radius =20
# Change the variable names below for the code to work.
### Fix Your Code Here ###
Circle(mouseX, mouseY, 4* radius, fill=color)
Circle(mouseX, mouseY, 3* radius, fill=color)
Circle(mouseX, mouseY, 2* radius, fill=color)
Circle(mouseX, mouseY, radius, fill=color)

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

Object Oriented Databases Prentice Hall International Series In Computer Science

Authors: John G. Hughes

1st Edition

0136298745, 978-0136298748

Students also viewed these Databases questions