Question
c = Circle(Point(30,40),25) c.setFill(blue) c.setOutline(red) => r = Rectangle(Point(20,20), Point(40,40)) r.setFill(color_rgb(0,255,150)) r.setWidth(3) => l = Line(Point(100,100), Point(100,200)) l.setOutline(red4) l.setArrow(first) => Oval(Point(50,50), Point(60,100)) => shape =
c = Circle(Point(30,40),25) c.setFill(blue) c.setOutline(red) => r = Rectangle(Point(20,20), Point(40,40)) r.setFill(color_rgb(0,255,150)) r.setWidth(3) => l = Line(Point(100,100), Point(100,200)) l.setOutline(red4) l.setArrow(first) => Oval(Point(50,50), Point(60,100)) => shape = Polygon(Point(5,5), Point(10,10), Point(5,10), Point(10,5)) shape.setFill(orange) => t = Text(Point(100,100), "Hello World!") t.setFace("courier") t.setSize(16) t.setStyle("italic") => Describe what happens when the following interactive graphics program runs: from graphics import * def main(): win = GraphWin() shape = Circle(Point(50,50), 20) shape.setOutline("red") shape.setFill("red") shape.draw(win) for i in range(10): p = win.getMouse() c = shape.getCenter() dx = p.getX() - c.getX() dy = p.getY() - c.getY() shape.move(dx,dy) win.close() main()
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