Gamma-Kurve für LEDs richtig berechnen
This commit is contained in:
parent
9687886832
commit
b741af4bed
1 changed files with 1 additions and 2 deletions
3
dmx.py
3
dmx.py
|
@ -12,8 +12,7 @@ def hsv_to_rgb(h, s, v):
|
|||
|
||||
|
||||
def ledlog(value):
|
||||
# return int(pow(float(value)/255.0, 2))*255
|
||||
return value
|
||||
return int(pow(float(value)/255.0, 2)*255)
|
||||
|
||||
|
||||
class RGB:
|
||||
|
|
Loading…
Reference in a new issue