It is currently 19 Feb 2018, 23:25

GIMP Script RequestsStroke Blend with Miter Limit Script (Showcase | Slideshow)

Post your Script Requests for GIMP here.
Forum rules
Request your Script(s) for GIMP here in this forum.
Provide details of steps performed in GIMP so that script can be written for the process and also give the request a name so that scripts can be named after.
User avatar
Pegleg44

Forum Member
View: Showcase | Slideshow
Topic Posts: 4/11
Posts: 43
Joined: 29 Nov 2016, 03:12
Cash on hand: 258.13 GLP
x 11
Gimp Nation

Stroke Blend with Miter Limit Script

Post#1 by Pegleg44 » 29 Sep 2017, 16:35


I keep wishing that I could stroke paths with a gradient that incorporates a miter limit for crisp angled edges. Is there such a thing available for gimp?

Image
0 x




Registered members enjoy ads-free content
User avatar
tim
Administrator
View: Showcase | Slideshow
Topic Posts: 6/11
Posts: 2160
Joined: 26 Sep 2016, 00:16
Cash on hand: 7,933.94 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 256
Contact:
Canada

Post#2 by tim » 29 Sep 2017, 16:52


I don't even know how to stroke blend.
If I knew how controlling the Miter Limit might be possible.

I think i can emulate this effect by stroking the path multiple times.
Script coming soon.
0 x



aka Tin
Image gimplearn.net                                              

User avatar
Pegleg44

Forum Member
View: Showcase | Slideshow
Topic Posts: 4/11
Posts: 43
Joined: 29 Nov 2016, 03:12
Cash on hand: 258.13 GLP
x 11
Gimp Nation

Post#3 by Pegleg44 » 29 Sep 2017, 18:21


Well in the image I posted, the star on the left is the miter example that I'm looking to emulate. I started with see through layer with no color. I made it by stroking the path 10 times using different line widths each time. And stroking it with different shades of grey each time. Since I stroked the path using Stroke Line - no Antialias and a line style miter limit of 10 the edges of each stroke were straight instead of curved. And then when I got it done I used the Stretch Contrast to make it white to black.

The star image on the right was done using the script that you made called "v_shape_selection_for_PegLeg44" and filling the selection with black on a white layer.

I could describe to you how I do the whole thing step by step if you want. But I'm not sure if you could make a script that could figure out how to stroke several times using different line widths after interactively entering on line width. You know so that it could do various widths.

Alan
0 x




User avatar
tim
Administrator
View: Showcase | Slideshow
Topic Posts: 6/11
Posts: 2160
Joined: 26 Sep 2016, 00:16
Cash on hand: 7,933.94 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 256
Contact:
Canada

Post#4 by tim » 29 Sep 2017, 18:34


Please give this script a try and let me know if that's what you want.
Stroke Path With Gradient (With Miter [sharp edges])
0 x



aka Tin
Image gimplearn.net                                              

User avatar
Pegleg44

Forum Member
View: Showcase | Slideshow
Topic Posts: 4/11
Posts: 43
Joined: 29 Nov 2016, 03:12
Cash on hand: 258.13 GLP
x 11
Gimp Nation

Post#5 by Pegleg44 » 29 Sep 2017, 21:54


I have tried it out and it works great. It gives very smooth results too. Much better than when I do it manually.

To make this an excellent plug-in that everybody would like, I think adding the ability to do a [Layer] [Transparency] [Semi Flatten] with white as the background (This would remove the opaque edges of the created layer, preparing it for these next steps) followed by filling the path with black and then add an option to [Colors] [Map] [Gradient Map] to make it possible for the user to turn it into whatever gradient they want.
0 x




User avatar
tim
Administrator
View: Showcase | Slideshow
Topic Posts: 6/11
Posts: 2160
Joined: 26 Sep 2016, 00:16
Cash on hand: 7,933.94 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 256
Contact:
Canada

Post#6 by tim » 29 Sep 2017, 21:59


You want me to add the [Layer][Transparency][Semi Flatten] step then?
0 x



aka Tin
Image gimplearn.net                                              

User avatar
tim
Administrator
View: Showcase | Slideshow
Topic Posts: 6/11
Posts: 2160
Joined: 26 Sep 2016, 00:16
Cash on hand: 7,933.94 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 256
Contact:
Canada

Post#7 by tim » 29 Sep 2017, 22:05


I just added semiflatten step for version 2.
0 x



aka Tin
Image gimplearn.net                                              

Post Reply

Last 20 Members Who Visited This Topic

dfkettle (1), User avatar Pat625 (13), User avatar LucivaldoSP (1), User avatar tim (25), User avatar animicule (2), User avatar RJKD (3), User avatar Pegleg44 (16), User avatar gnerd (12)

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

Who is online

Users browsing this forum: No registered users and 1 guest