mirror of
https://github.com/brmlab/ledbar.git
synced 2025-06-09 13:24:01 +02:00
equalizer.py: Commented-out example of monochromatic mode
This commit is contained in:
parent
bceb322d87
commit
f09d69a6b3
1 changed files with 3 additions and 0 deletions
|
@ -74,6 +74,9 @@ stream = p.open(format = FORMAT,
|
||||||
def get_color(volume):
|
def get_color(volume):
|
||||||
p = 1-15/(volume)
|
p = 1-15/(volume)
|
||||||
if p <= 0: return (0, 0, 0)
|
if p <= 0: return (0, 0, 0)
|
||||||
|
# Monochromatic mode:
|
||||||
|
# p = p * p * p * p * p * p * p
|
||||||
|
# return (0, p/4, p) # or any other combination
|
||||||
if SLOW == 1:
|
if SLOW == 1:
|
||||||
p *= p
|
p *= p
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue