Answers for "pygame.draw.rect(win, (255, 0, 0), (x, y, gubbe_width, gubbe_height)) NameError: name 'win' is not defined"

1

pygame.draw.rect()

gameDisplay = pygame.display.set_mode((width,height))
bright_blue =(0,255,255)

# draw rectangle 
pygame.draw.rect(gameDisplay, bright_blue ,(611,473,100,50))
Posted by: Guest on July-11-2020
1

pygame how to draw a rectangle

pygame.draw.rect(DISPLAY,BLUE,(200,150,100,50))
Posted by: Guest on September-04-2020

Code answers related to "pygame.draw.rect(win, (255, 0, 0), (x, y, gubbe_width, gubbe_height)) NameError: name 'win' is not defined"

Python Answers by Framework

Browse Popular Code Answers by Language