It is currently 20 Feb 2018, 23:24

GIMP Python Fu ScriptsFill Average Color Script for GIMP to aid in doing Polygon Art (Showcase | Slideshow)

Share your Python Fu scripts for GIMP here
User avatar
tim

Administrator
View: Showcase | Slideshow
Topic Posts: 6/16
Posts: 2162
Joined: 26 Sep 2016, 00:16
Cash on hand: 7,946.37 GLP
Bank: 51,356.25 GLP
Gender: Guy
Location: Victoria, BC
Website: https://gimplearn.net
Operating System: Windows
GIMP Version: 2.8.22
My Personal Blog
My FineArtAmerica
x 1207
x 258
Contact:
Canada

Fill Average Color Script for GIMP to aid in doing Polygon Art

Post#1 by tim » 27 Aug 2017, 22:59


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.zip #
zipped .py file (unzip, put in your GIMP's /plug-ins/ folder)
(1.25 KiB) Downloaded 83 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: (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
emma_watson_polygon_art_wip.jpg # (84.05 KiB) Viewed 598 times (Watermarked | Thumbnail)
0 x



aka Tin
Image gimplearn.net                                              

Registered members enjoy ads-free content
User avatar
Pat625
Script Tester
View: Showcase | Slideshow
Topic Posts: 2/16
Posts: 2232
Joined: 28 Sep 2016, 03:35
Cash on hand: 13,251.55 GLP
Gender: Gal
Location: USA
Operating System: Windows
GIMP Version: 2.8.22
x 8
x 470
United States of America

Post#2 by Pat625 » 27 Aug 2017, 23:10


I like that, Tin. I'll have to try that. It seems that would be much better than having a lot of different colors over the face which distorts and you can't tell who it is.
1 x




User avatar
Issabella
Script Tester
View: Showcase | Slideshow
Topic Posts: 8/16
Posts: 1962
Joined: 19 Jan 2017, 11:42
Cash on hand: 17,162.78 GLP
Gender: Gal
Operating System: Windows
x 231
x 505
Spain

Post#3 by Issabella » 28 Aug 2017, 17:17


:gimp_clap: Tin, I love your script and what you did in your result. But how? Please, Could you explain it in a simple way? Thank you so much. :gimp_clap:
0 x



Issabella

User avatar
tim

Administrator
View: Showcase | Slideshow
Topic Posts: 6/16
Posts: 2162
Joined: 26 Sep 2016, 00:16
Cash on hand: 7,946.37 GLP
Bank: 51,356.25 GLP
Gender: Guy
Location: Victoria, BC
Website: https://gimplearn.net
Operating System: Windows
GIMP Version: 2.8.22
My Personal Blog
My FineArtAmerica
x 1207
x 258
Contact:
Canada

Post#4 by tim » 28 Aug 2017, 17:42


I have instructions, that is as detailed as i could explain it.
Basically all the script does is it takes the average color of your selection of the layer named 'Source' and fills the selection on active layer with it.
So if you have your 'Source' layer, create a working layer on top, and make a selection on working layer and run script, it'll fill your selection with average color taken from 'Source' layer.
And then you do this repeatedly for reach polygon you select.
0 x



aka Tin
Image gimplearn.net                                              

User avatar
Issabella
Script Tester
View: Showcase | Slideshow
Topic Posts: 8/16
Posts: 1962
Joined: 19 Jan 2017, 11:42
Cash on hand: 17,162.78 GLP
Gender: Gal
Operating System: Windows
x 231
x 505
Spain

Post#5 by Issabella » 28 Aug 2017, 19:50


Thank you Tin. I did that but my result was so dull... hehehe I'll try it again. :lol:
0 x



Issabella

User avatar
Pat625
Script Tester
View: Showcase | Slideshow
Topic Posts: 2/16
Posts: 2232
Joined: 28 Sep 2016, 03:35
Cash on hand: 13,251.55 GLP
Gender: Gal
Location: USA
Operating System: Windows
GIMP Version: 2.8.22
x 8
x 470
United States of America

Post#6 by Pat625 » 28 Aug 2017, 21:53


Same here. I think I did not get a bright enough of an image. Need to start over.
0 x




User avatar
Issabella
Script Tester
View: Showcase | Slideshow
Topic Posts: 8/16
Posts: 1962
Joined: 19 Jan 2017, 11:42
Cash on hand: 17,162.78 GLP
Gender: Gal
Operating System: Windows
x 231
x 505
Spain

Post#7 by Issabella » 30 Aug 2017, 09:44


My new try to this nice filter, Tin. I think that you got a bright result.
If my result is acceptable, please let me know as I thought of a way to make the selections easier. :)
Attachments
496b53016_TIN_FillAverageColour.jpg
496b53016_TIN_FillAverageColour.jpg # (104.78 KiB) Viewed 500 times (Watermarked | Thumbnail)
0 x



Issabella

Post Reply

Last 20 Members Who Visited This Topic

User avatar tim (68), saleh_oukiki (1), User avatar Alan (1), User avatar Pat625 (14), User avatar gnerd (8), User avatar leopardo-40 (2), User avatar Issabella (24), User avatar RJKD (7), User avatar Steve Reid (1)

  • Similar Topics
    Replies
    Views
    Last post
• Featuring Members' Works (Image Attachments Only) •
1: RJKD
2: Issabella
3: Issabella
4: tim
5: oldmangrumpy
6: Issabella
7: Pat625

Who is online

Users browsing this forum: No registered users and 3 guests