Untitled
unknown
plain_text
2 years ago
348 B
7
Indexable
import pygame
pygame.init()
win = pygame.display.set_mode((600,400))
color = (255,0,100)
win.fill(color)
i = 0
while True:
for event in pygame.event.get():
if event.type == pygame.QUIT:
exit()
i = i + 1
pygame.draw.rect(win,(0,0,0),(i,0,100,100))
pygame.display.update()
Editor is loading...
Leave a Comment