Switch to full style
Post all Gimp scripts and script writing questions here
Post a reply

GEGL Outline Glow Types - potential plugin idea

Fri Apr 26, 2024 8:33 am

I am thinking of making a plugin that does outer glow to inner glow transitions depending on rather a invert checkbox is pressed. The GEGL syntax used to create it is here

Code:
id=1
component-extract component=alpha invert=true
color-to-alpha color=white
dropshadow radius=10 color=white x=0 y=0 opacity=2
color-to-alpha color=black
color-overlay value=#34ff00
crop aux=[ ref=1 ]




Invert set to false (inner glow)

invert_false.png
invert_false.png (131.18 KiB) Viewed 4104 times


Invert set to true (outline, shadow glow)

2024-04-26_09-20.png
2024-04-26_09-20.png (132.28 KiB) Viewed 4104 times


Plugin is expected to be used with GIMP blend modes (Blending Options). Try pasting the syntax in GEGL graph and changing the invert checkbox and dropshadow values to see how it functions.

Re: GEGL Outline Glow Types - potential plugin idea

Sun Apr 28, 2024 12:33 pm

I just found an alternative method to make an inner glow and inverted inner glow

Here is what is going on

id=1 is the bookmark of the original text that will be used as a mask for a blend mode later

Gaussian Blur is the blur radius of the inner glow

Translate is the movability X and Y of inner glow. The same thing as the X and Y that moves drop shadow.

Color Overlay is the color of the Inner Glow

Opacity is the hyper opacity of the inner glow that goes above 100%

src-out/src-in are GEGL exclusive blend modes that erase content outside a input mask which in this case is the text. So imagine a text mask knocking out the red gaussian blur puff outside. Src-out does exactly that, and src-in does that but with inverted transparency. ref=1 is the bookmark of the original text being called

Inner Glow
2024-04-28_13-24.png
2024-04-28_13-24.png (132.49 KiB) Viewed 4005 times



Code:
id=1
gaussian-blur std-dev-x=10 std-dev-y=10 abyss-policy=none clip-extent=false
translate x=0 y=0
src-out aux=[ ref=1   ]
color-overlay value=#ff032f
opacity value=1.3


Inverted Inner Glow

2024-04-28_13-24_1.png
2024-04-28_13-24_1.png (129.69 KiB) Viewed 4005 times


Code:
id=1
gaussian-blur std-dev-x=10 std-dev-y=10  abyss-policy=none clip-extent=false
translate x=0 y=0
src-in aux=[ ref=1   ]
color-overlay value=#ff032f
opacity value=1.3




I am discussing technical ways to revamp and perfect my existing plugins and others have yet to begin making a GEGL plugin
Post a reply