import pygame import sys pygame.init() RED = (255,0,0) L_BLUE = (0,200,255) GREY = (128,128,128) BLACK = (0,0,0) display = pygame.display.set_mode((1200,1000)) pygame.display.set_caption("CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAR") display.fill(BLACK) #pygame.draw.ellipse(surface, color, bounding_rectangle, width) #BODY CAR pygame.draw.rect(display, RED, pygame.Rect(350,400,500,200), width=0, border_radius=35) #WINDSHEILD pygame.draw.rect(display, L_BLUE, pygame.Rect(600,410,80,180), width=0, border_radius=20) #Wheels pygame.draw.rect(display, GREY, pygame.Rect(390,340,120,60), width=0, border_radius=12) pygame.draw.rect(display, GREY, pygame.Rect(690,340,120,60), width=0, border_radius=12) pygame.draw.rect(display, GREY, pygame.Rect(390,600,120,60), width=0, border_radius=12) pygame.draw.rect(display, GREY, pygame.Rect(690,600,120,60), width=0, border_radius=12) while True : for events in pygame.event.get(): if events.type == pygame.QUIT: pygame.quit() sys.exit() pygame.display.update()