Answers for "what is the surface parameter of pygame draw line"

6

draw a line pygame

pygame.draw.line(surface, color, start_pos, end_pos, width)
Posted by: Guest on June-16-2020
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

Python Answers by Framework

Browse Popular Code Answers by Language