From 1ad7a3244dcc785f806a2ff7b63a2fd29c969a7c Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 22 Feb 2014 03:26:39 +0100 Subject: derp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- examples/sleepmode | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples') 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. -- cgit v1.2.3-70-g09d2