I'm trying to draw a hollow rectangle with rounded edges in pygame this is my code:
pygame.draw.rect(screen,(0,0,0),(350,400,200,100),5,5)
And it says "TypeError function takes at most 4 arguments (5 given)". I wonder if it has anything to do with the version of pygame I'm using, I have pygame 1.9.6. I have looked at the pygame documentation and it says that I shoud be able to use up to 9 parameters.