Wednesday, 2 March 2022

Python Program Draw a red circle centered at point (100,100) with radius 30

SCREENSHOT



CODE

 #Draw a red circle centered at point (100,100) with radius 30

from graphics import *

def main():

    win = GraphWin('Draw Circle',300,300)

    center = Point(100,100) 

    circ = Circle(center, 30) 

    circ.setFill('red') 

    circ.draw(win)

main()

No comments:

Post a Comment