summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-02-22 03:26:39 +0100
committerMattias Andrée <maandree@operamail.com>2014-02-22 03:26:39 +0100
commit1ad7a3244dcc785f806a2ff7b63a2fd29c969a7c (patch)
tree1125070f84436dbb1e3e78605be60431733399d3 /examples
parentmove completion into src and build its output scripts to bin (diff)
downloadblueshift-1ad7a3244dcc785f806a2ff7b63a2fd29c969a7c.tar.gz
blueshift-1ad7a3244dcc785f806a2ff7b63a2fd29c969a7c.tar.bz2
blueshift-1ad7a3244dcc785f806a2ff7b63a2fd29c969a7c.tar.xz
derp
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'examples')
-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.