diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-02-21 14:53:36 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-02-21 14:53:36 +0100 |
commit | 390f5716d4bc6dd7361add4a2cf84d0caa912158 (patch) | |
tree | 8666c53623e42fc301601bd763fc00af79b40951 /examples | |
parent | add vidmode support (diff) | |
download | blueshift-390f5716d4bc6dd7361add4a2cf84d0caa912158.tar.gz blueshift-390f5716d4bc6dd7361add4a2cf84d0caa912158.tar.bz2 blueshift-390f5716d4bc6dd7361add4a2cf84d0caa912158.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/sleepmode | 4 |
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. |