🔘

002 circle - 원

import pygame as pg pg.init() 화면가로길이 = 600 화면세로길이 = 800 화면 = pg.display.set_mode((화면가로길이, 화면세로길이)) pg.draw.rect(화면, (255, 0, 0), (50, 50, 50, 50)) pg.draw.rect(화면, (255, 255, 255), (100, 200, 200, 100), 5) pg.draw.circle(화면, (255, 0, 0), (50, 450), 10) pg.draw.circle(화면, (255, 255, 255), (100, 600), 30) pg.draw.circle(화면, (255, 255, 255), (100, 700), 30, 3) pg.display.update() while True: for 이벤트 in pg.event.get(): if 이벤트.type == pg.QUIT: quit()