sharkdp / pastel

A command-line tool to generate, analyze, convert and manipulate colors
Apache License 2.0
5k stars 97 forks source link

Add "pastel set luminance" #89

Open sharkdp opened 4 years ago

sharkdp commented 4 years ago

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.