import pygame, sys pygame.init() display = pygame.display.set_mode((300,300)) display.fill((255,255,255)) # Drawing a circle on the display surface using Pygame's draw.circle() function. pygame.draw.circle(display, (0,0,255), center=(150,150), radius=50, width=0) # display: The surface to draw the circle on. # (0, 0, 255): The color of the circle in RGB format, here it represents blue color. # center=(150, 150): The center coordinates of the circle, here it's (150, 150). # radius=50: The radius of the circle, here it's 50 pixels. # width=0: The width of the outline of the circle. # Setting it to 0 means that the circle will be filled with the specified color. while True: for event in pygame.event.get(): if event.type == pygame.QUIT: pygame.quit() sys.exit() pygame.display.update()