I am trying to draw a rectangle on the screen. My code is below:
pygame.draw.rect(screen,(255,0,0),
(self.width/2-20,self.height/2-20,40,40),
width=0)
Pygame keeps returning the error message:
TypeError: rect() takes no keyword arguments
Can anyone help me with this?