Qix-/color

Relative Luminance equation #248

indigohedgehog posted onGitHub

For this equation the correct threshold for the piecewise equation is 0.04045 and not 0.03928 lum[i] = (chan <= 0.039_28) ? chan / 12.92 : ((chan + 0.055) / 1.055) ** 2.4;

https://www.w3.org/WAI/GL/wiki/Relative_luminance


Thanks, fix incoming.

posted by Qix- about 3 years ago

Fund this Issue

$0.00
Funded

Pull requests