summaryrefslogtreecommitdiffstats
path: root/examples/darkroom
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-03-16 20:26:50 +0100
committerMattias Andrée <maandree@operamail.com>2014-03-16 20:26:50 +0100
commit6d9a84e62e378ba0035bb3730b8db2c00c208b3b (patch)
tree7aa4653ee9bda1d918d7bcdc84ac6597d23e8535 /examples/darkroom
parentadd darkroom example (diff)
downloadblueshift-6d9a84e62e378ba0035bb3730b8db2c00c208b3b.tar.gz
blueshift-6d9a84e62e378ba0035bb3730b8db2c00c208b3b.tar.bz2
blueshift-6d9a84e62e378ba0035bb3730b8db2c00c208b3b.tar.xz
darkroom bug fix: order of filters was incorrect
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'examples/darkroom')
-rw-r--r--examples/darkroom9
1 files changed, 4 insertions, 5 deletions
diff --git a/examples/darkroom b/examples/darkroom
index cd4f5eb..1bec693 100644
--- a/examples/darkroom
+++ b/examples/darkroom
@@ -65,6 +65,10 @@ for m in range(max(1, len(monitors))):
if not doreset:
# Invert colours.
cie_invert()
+ # Make the screen red by removing other colours.
+ rgb_brightness(1, 0, 0)
+ # Dim the screen.
+ cie_brightness(0.25)
# Apply gamma correction to monitor.
r = gamma_red [m % len(gamma_red)]
@@ -72,11 +76,6 @@ for m in range(max(1, len(monitors))):
b = gamma_blue [m % len(gamma_blue)]
gamma(r, g, b)
- if not doreset:
- # Make the screen red by removing other colours
- rgb_brightness(1, 0, 0)
- cie_brightness(0.25)
-
# Flush settings to monitor.
if len(monitors) == 0:
(drm if ttymode else randr)()