Skip to content

color: Correct temperature interpolation corner cases

Benjamin Berg requested to merge benzea/fix-nightlight-interpolation into master

It probably makes sense to backport this trivial fix.

The linear interpolation done for the color temperature would fail if the value is exactly 0 or 1. Such values can be hit, so the we need to accept them in normal operations.

Fixes #92 (closed)

Merge request reports