added and positioned an array of 8 knobs

This commit is contained in:
SallarShayegan
2025-02-23 20:46:34 +01:00
parent e80152716b
commit 1e0d5de886
2 changed files with 21 additions and 6 deletions

View File

@ -3,11 +3,11 @@ import math
class Knob:
def __init__(self, screen):
def __init__(self, screen, color, radius, position):
self.screen = screen
self.radius = screen.get_width()/20
self.fill_color = (160,0,255)
self.position = (screen.get_width()/2, screen.get_height()/2)
self.radius = radius
self.fill_color = color
self.position = position
self.value = 0
def set_value(self, value):