Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
348 B
1
Indexable
Never
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()



    
Leave a Comment