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):
|
def ledlog(value):
|
||||||
# return int(pow(float(value)/255.0, 2))*255
|
return int(pow(float(value)/255.0, 2)*255)
|
||||||
return value
|
|
||||||
|
|
||||||
|
|
||||||
class RGB:
|
class RGB:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue