From 390f5716d4bc6dd7361add4a2cf84d0caa912158 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 21 Feb 2014 14:53:36 +0100 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- examples/sleepmode | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/sleepmode') 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. -- cgit v1.2.3-70-g09d2