This is not as straightforward to implement like the rest of the properties. The way this should be implemented is probably by (only) adjusting the Lightness channel in Lab space until the luminance has the right value.
If there is no direct way to compute the correct L value, we could also perform a (binary) search in L space until we have the right luminance value.
This is not as straightforward to implement like the rest of the properties. The way this should be implemented is probably by (only) adjusting the
L
ightness channel inLab
space until the luminance has the right value.If there is no direct way to compute the correct
L
value, we could also perform a (binary) search inL
space until we have the right luminance value.