
This script is to aid in creating polygon art.
It will get average color of selected area on layer called "Source" and fill selected area with that color on active layer.
Download
-
draw_average_color_from_source_layer.py #
- version 4. Add option to grow selection of each pathed area by number of pixels to intersect with original selection to get pixel accuracy.
- (4.29 KiB) Downloaded 287 times
-
draw_average_color_from_source_layer.py #
- version 5. Speed enhancement. Got rid of undo-group call and use GIMP 2.10 drawable_edit_fill instead of old method (Also reducing Undo history cache to 16MB seemed to speed it up).
- (4.53 KiB) Downloaded 265 times
-
draw_average_color_from_source_layer.py #
- version 7. Speed enhancement. Added option to say "NO" to dodging filled areas because when we work on a new blank layer, there's no need to call an extra subtract alpha to selection call.
- (5.68 KiB) Downloaded 247 times
-
draw_average_color_from_source_layer.py #
- version 8. Speed Enhancement using Edit-blend.
Crossing my fingers. I think I got this time with speed enhancement by using Edit-Blend instead of other methods. - (5.97 KiB) Downloaded 396 times
Script Menu Location: Python-Fu/Fill Average Color
Instructions:
1. Have an image opened with a layer of image that is used as your 'Source'.
2. Rename that layer to 'Source'.
3. Create new layer above 'Source' layer and make it active. Fills will be on this layer.
4. Use the

(Free select tool) and make a shape selection on active layer.
5. Run script (Python-Fu/Fill Average Color).
6. Now keep making other selections and Ctrl-F to repeat the script.
7. And you'll finish with a piece of polygon art.
8. Optionally, you can create a 50% opacity black layer between your 'Source' layer and your working layer so that you'll easily be able to tell which parts you have done and which parts aren't done.
Here's a sample of work in progress.

- emma_watson_polygon_art_wip.jpg # (84.05 KiB) Viewed 10662 times Thumbnail