Code: Alles auswählen
import pygame, sys, random
screen = pygame.display.set_mode ((1500, 1000))
screen.fill ((255, 255, 255))
w = random.randint (10, 1000)
x = random.randint (10, 1000)
y = random.randint (10, 1000)
z = random.randint (10, 1000)
color = ((w, x, y))
pygame.draw.rect(screen, color, ((w, x, y, z)), 1)
pygame.display.flip()
while True:
for event in pygame.event.get():
if event.type == pygame.QUIT:
sys.exit()
Invalid Color Argument