Simplify draw.rect

This commit is contained in:
Matt Low 2020-11-15 13:26:57 +04:00
parent 1662e2e4a9
commit 4e0c6588e1

View File

@ -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)