added and positioned an array of 8 knobs
This commit is contained in:
8
knob.py
8
knob.py
@ -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):
|
||||
|
||||
Reference in New Issue
Block a user