sharkdp / pastel

A command-line tool to generate, analyze, convert and manipulate colors

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add "pastel set luminance"

sharkdp opened this issue · comments

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.