It is currently 18 Jan 2021, 05:02
| ||||
| ||||
|
|

Get Average Color Plug-in

- tim
- View:
|Posts
- Topic Posts: 3/9 | Posts: 5208
- Joined: 26 Sep 2016, 00:16
- Cash on hand: 75,189.92 GLP
- Bank: 205,555,073.00 GLP
- Gender: Guy
- Location: Canada
- GIMP Version: 2.10.X
- Paint Blotches blog
- Play them songs blog
- Personal Blog
- x 3064
- x 1009
- Contact:
Get Average Color Plug-in
Simply sets foreground color to average color of selection (if one exists) otherwise of whole active layer.
Instructions:
Plug-in Menu Location: Python-fu/Get Average Color
Instructions:
- Make a selection or not.
- Run plug-in.
- That's it, average color of selection or whole active layer will be set as foreground.
aka Tin
-
Wallace
- View:
|Posts
- Topic Posts: 1/9 | Posts: 895
- Joined: 11 Oct 2016, 21:24
- Cash on hand: 7,428.52 GLP
- Bank: 5,923,553.62 GLP
- Gender: Guy
- Location: Arizona USA
- GIMP Version: 2.8.18
- My YouTube Channel
- My deviantart Account
- x 1597
- x 307
That was quick.tim wrote: ↑10 Jun 2019, 05:36Simply sets foreground color to average color of selection (if one exists) otherwise of whole active layer. get_average_color.py
Plug-in Menu Location:Python-fu/Get Average Color
Instructions:
- Make a selection or not.
- Run plug-in.
- That's it, average color of selection or whole active layer will be set as foreground.
I'm not sure what this night be used for, but it's nice to have.
Maybe it can be good for creating a color overlay that matched the image.

Will test later.
There is the ofn-average-fill.py, that fills the selection with average color.
I thought it would be good way to create stained glass windows, using first the tesselate plug-in that was posted while ago to create voronoi or delauney pattern on top. But you have to switch between the selection layer and the image layer for each area fill.
There is the ofn-average-fill.py, that fills the selection with average color.
I thought it would be good way to create stained glass windows, using first the tesselate plug-in that was posted while ago to create voronoi or delauney pattern on top. But you have to switch between the selection layer and the image layer for each area fill.
Last edited by nidhogg on 10 Jun 2019, 10:01, edited 1 time in total.
GIMP Learn rocks...
Reinventing the wheel 
There are pre-cursors, RobA script from 2009 My preference since I can load it as required using resources manager.
Ofnuts (2017) fill layer / selection straight off and the latest, very nice straight into FG.


There are pre-cursors, RobA script from 2009 My preference since I can load it as required using resources manager.
Ofnuts (2017) fill layer / selection straight off and the latest, very nice straight into FG.

- tim
- View:
|Posts
- Topic Posts: 3/9 | Posts: 5208
- Joined: 26 Sep 2016, 00:16
- Cash on hand: 75,189.92 GLP
- Bank: 205,555,073.00 GLP
- Gender: Guy
- Location: Canada
- GIMP Version: 2.10.X
- Paint Blotches blog
- Play them songs blog
- Personal Blog
- x 3064
- x 1009
- Contact:
- tim
- View:
|Posts
- Topic Posts: 3/9 | Posts: 5208
- Joined: 26 Sep 2016, 00:16
- Cash on hand: 75,189.92 GLP
- Bank: 205,555,073.00 GLP
- Gender: Guy
- Location: Canada
- GIMP Version: 2.10.X
- Paint Blotches blog
- Play them songs blog
- Personal Blog
- x 3064
- x 1009
- Contact:
If you select all the triangles then you can do it all in one go on a transparent layer with Fill Average Color script I made.nidhogg wrote: ↑10 Jun 2019, 09:58Will test later.
There is the ofn-average-fill.py, that fills the selection with average color.
I thought it would be good way to create stained glass windows, using first the tesselate plug-in that was posted while ago to create voronoi or delauney pattern on top. But you have to switch between the selection layer and the image layer for each area fill.
Fill-With-Average.png
viewtopic.php?f=3&t=865
You just have to name your Source layer "Source" as it needs to grab colors (average colors) from that layer.
aka Tin
How have I missed that plug-in!!
I created first tesselate pattern, using voronoi. Fuzzy selection, threshold raised to 150, that way it selects the large areas without the dots. Ran the plug-in on empty layer. Pixels to grow = 0, Edit-Blend = no.
Again fuzzy selection on the voronoi layer, shrink by 1 pixel hit delete. Dots gone, me happyyyy!
Thank you, I will enjoy playing with this.
I created first tesselate pattern, using voronoi. Fuzzy selection, threshold raised to 150, that way it selects the large areas without the dots. Ran the plug-in on empty layer. Pixels to grow = 0, Edit-Blend = no.
Again fuzzy selection on the voronoi layer, shrink by 1 pixel hit delete. Dots gone, me happyyyy!
Thank you, I will enjoy playing with this.
GIMP Learn rocks...
@nidhogg, Very nice. I had to play around some to get rid of those dots. My brush was too big. 2 px worked. Thank you.
Thanks Tim.
Thanks Tim.
- Attachments
-
- IMG_3074__.png (1008.35 KiB) Viewed 4063 times
GIMP Learn rocks...
Yes, brush 2. hardness 100, 2px works well. Beware that you don't have some 2500x2500 grunge brush loaded when you hit ok. 

GIMP Learn rocks...
| ||||
| ||||
|
-
- Similar Topics
- Replies
- Views
- Last post
-
- 0 Replies
- 570 Views
-
Last post by tim
21 Sep 2020, 22:30
-
-
Transparent to color and content to transparent plug-in
by tim » 01 Oct 2020, 13:24 » in GIMP Python Fu Scripts/Plug-ins - 1 Replies
- 894 Views
-
Last post by GJL
01 Oct 2020, 14:04
-
-
- 0 Replies
- 676 Views
-
Last post by tim
04 Nov 2020, 03:21
-
- 2 Replies
- 1030 Views
-
Last post by tim
03 Oct 2020, 12:21
-
- 9 Replies
- 1508 Views
-
Last post by Krikor
27 Oct 2020, 13:51
-
- 2 Replies
- 4642 Views
-
Last post by nidhogg
03 Feb 2020, 17:18
-
- 1 Replies
- 2375 Views
-
Last post by enxio27
22 Mar 2020, 23:18
Who is online
Users browsing this forum: No registered users and 80 guests