Here’s another update of the Easy Zone Adjustment script (
http://forum.meetthegimp.org/index.php/topic,42.msg1446.html#msg1446). The lightness of the colours can be calculated in a more appropriate way than it was done in the former code. There I just added the values of the three colour channels. Now it is implemented the correct calculation of the colour values according the HSV-model. The change in code is minimal, the results are just slightly different, but the programmer feels significantly better ;-)
Regards,
Bert
Just a suggestion ... not sure if its feasible or not :-)
Would it be possible to select the colors to be used as white+black using the (relatively) new sample points feature:
http://docs.gimp.org/en/gimp-sample-point-dialog.htmlI think it might be easier than creating dual select regions, also easier to tweak location of selected color locations (just click and drag the sample points). I "assume" that the sample-colors are available "somehow" in script-fu (?)
If easy you could:
- use sample points if any exist and fallback to selection regions
- or provide a checkbox : use sample points/selection regions.
Whether or not you can/choose to implement sample-points for color choice, it would (IMO) be "nice" to not remove the selections ... again to allow easier tweaking of the black/white base colors.
[Edit add: I had assumed that the values shown in the two sliders depended on the colors chosen in the two selection areas. This seems not to be the case ... they always show 19.8% and 236.4% for dark and light respectively. Do these sliders do anything? ]
[Edit add 2: I ran Filters-Reset All Filters and the two values changed to 15% and 247% but behavior seems unaffected]
[Edit add 3: I hadn't realized until now that an effective way to "tweak" the color points is the following:
- Make initial selection - execute Easy-zone
- Don't like it? - Undo - selections are restored.
- Move both with ALT+click Drag (change one of the two with Ctl+drag to enclose then redo Shift+ drag
- Hit Ctrl+F - it re-executes Easy-zone with the new selections.
Nonetheless - I think using the sample points might be interesting]