small refactoring

This commit is contained in:
SallarShayegan
2025-02-23 21:11:49 +01:00
parent 1e0d5de886
commit 106d93b9c3
2 changed files with 6 additions and 4 deletions

View File

@ -7,6 +7,7 @@ screenW = 561
screenH = 325
screen = pygame.display.set_mode((screenW, screenH))
# Create and position the knobs
knobs_radius = screenW / 25
knobs_spacing = knobs_radius * 2
knobs_x = (screenW - (knobs_radius + knobs_spacing) * 2) / 2