equalizer.py: Commented-out example of monochromatic mode

This commit is contained in:
Petr Baudis 2012-08-19 23:53:34 +02:00
parent bceb322d87
commit f09d69a6b3

View file

@ -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: