Simplify draw.rect
This commit is contained in:
parent
1662e2e4a9
commit
4e0c6588e1
@ -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)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user