colorz icon indicating copy to clipboard operation
colorz copied to clipboard

Suggestion : background / foreground

Open rapha8l opened this issue 6 years ago • 2 comments

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 !

rapha8l avatar Sep 22 '18 15:09 rapha8l

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).

metakirby5 avatar Sep 22 '18 22:09 metakirby5

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

rapha8l avatar Sep 23 '18 18:09 rapha8l