summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/sleepmode6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/sleepmode b/examples/sleepmode
index bbeb42f..44695a3 100644
--- a/examples/sleepmode
+++ b/examples/sleepmode
@@ -88,9 +88,9 @@ def periodically(year, month, day, hour, minute, second, weekday, fade):
r = min(max(0, purity * 3 - 0), 1)
g = min(max(0, purity * 3 - 1), 1)
b = min(max(0, purity * 3 - 2), 1)
- r = redness [m % len(redness)] * (1 - r) + purity
- g = greenness[m % len(greenness)] * (1 - g) + purity
- b = blueness [m % len(blueness)] * (1 - b) + purity
+ r = redness [m % len(redness)] * (1 - r) + r
+ g = greenness[m % len(greenness)] * (1 - g) + g
+ b = blueness [m % len(blueness)] * (1 - b) + b
rgb_brightness(r, g, b)
# Flush settings to monitor.