summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-02-21 14:53:36 +0100
committerMattias Andrée <maandree@operamail.com>2014-02-21 14:53:36 +0100
commit390f5716d4bc6dd7361add4a2cf84d0caa912158 (patch)
tree8666c53623e42fc301601bd763fc00af79b40951
parentadd vidmode support (diff)
downloadblueshift-390f5716d4bc6dd7361add4a2cf84d0caa912158.tar.gz
blueshift-390f5716d4bc6dd7361add4a2cf84d0caa912158.tar.bz2
blueshift-390f5716d4bc6dd7361add4a2cf84d0caa912158.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--examples/sleepmode4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/sleepmode b/examples/sleepmode
index 1f8ca53..bbeb42f 100644
--- a/examples/sleepmode
+++ b/examples/sleepmode
@@ -89,8 +89,8 @@ def periodically(year, month, day, hour, minute, second, weekday, fade):
g = min(max(0, purity * 3 - 1), 1)
b = min(max(0, purity * 3 - 2), 1)
r = redness [m % len(redness)] * (1 - r) + purity
- r = greenness[m % len(greenness)] * (1 - g) + purity
- r = blueness [m % len(blueness)] * (1 - b) + purity
+ g = greenness[m % len(greenness)] * (1 - g) + purity
+ b = blueness [m % len(blueness)] * (1 - b) + purity
rgb_brightness(r, g, b)
# Flush settings to monitor.