bcbca9e065
D65, the natural whitepoint that wlsunset assumes, is defined on illuminant D, which simulates daylight with atmospheric effects. However, we used planckian locus for all values under 6500 K, which meant that there was a significant jump in color - specifically, a sudden reduction in green and blue - as we started reducing the color temperature. Instead, we purely use illuminant D down to 4000 K where it is well defined. Below 4000 K, illuminant D starts unintentionally approaching the planckian locus, before finally breaking completely at 2000 K. We extend the boundary of illuminant D to 2500 K and perform a sine-smoothed transition to planckian locus from 4000 K to 2500 K to extend the range of wlsunset down to 1667 K, where planckian locus ends and we finally give up. The end-result is a smooth transition along all valid temperature values, with no sudden jumps as we had before. However, we do end up with slightly greener/bluer colors than earlier. We'll have to see how that holds up. |
||
---|---|---|
.builds | ||
LICENSE | ||
README.md | ||
color_math.c | ||
color_math.h | ||
main.c | ||
meson.build | ||
meson_options.txt | ||
wlr-gamma-control-unstable-v1.xml | ||
wlsunset.1.scd |
README.md
wlsunset
Day/night gamma adjustments for Wayland compositors supporting wlr-gamma-control-unstable-v1.
How to build and install
meson build
ninja -C build
sudo ninja -C build install
How to use
See the helptext (wlsunset -h
)
Example
# Beijing lat/long.
wlsunset -l 39.9 -L 116.3
Greater precision than one decimal place serves no purpose other than padding the command-line.
Help
Go to #kennylevinsen @ chat.freenode.net to discuss, or use ~kennylevinsen/public-inbox@lists.sr.ht