summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-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)()