colorz
colorz copied to clipboard
Suggestion : background / foreground
Hi,
I had the idea of a little improvement on generating background and foreground colors :
- for a dark scheme, get the darkest color and make it 10/20% darker as the background color, for the foreground, get the lightest color - 10/20% and invert for a light scheme ! Thanks !
That sounds like a very cool suggestion! I'm not actively working on colorz at the moment, but I'm open to any pull requests wishing to implement this feature.
colorz already supports clamping colors by value, which is essentially brightness/darkness. A good API for this feature might be to allow for value post-processing, e.g. impose that the most dominant color must have a certain value. For example: colorz --forcev 50 --forcev 250
would force the most dominant color to have value 50 (darker), and the second most dominant color to have value 250 (lighter).
Thanks for your feedback, as the only code I can do is shell oneliners, it may take time :) But I'll try to have a look