Simplify draw.rect
This commit is contained in:
		@ -24,7 +24,7 @@ def polygon(surface, color, vertices, width):
 | 
			
		||||
 | 
			
		||||
def rect(surface, color, x, y, height, width, stroke_width):
 | 
			
		||||
    pygame.draw.rect(surface, color,
 | 
			
		||||
                     pygame.Rect(OFFSET[0] + x, OFFSET[1] + y, height, width),
 | 
			
		||||
                     pygame.Rect(*add(*OFFSET, x, y), height, width),
 | 
			
		||||
                     stroke_width)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user