Skip to content

Commit 3332245

Browse files
authored
Update inner-glow.c
1 parent 3fe6497 commit 3332245

1 file changed

Lines changed: 13 additions & 24 deletions

File tree

compile_innerglow_here/inner-glow.c

Lines changed: 13 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,6 @@ property_string (string, _("Invert Transparency"), TUTORIAL)
3232
ui_meta ("role", "output-extent")
3333

3434

35-
property_color (eblack, _("Color"), "#000000")
36-
description(_("The color to make transparent."))
37-
ui_meta ("role", "output-extent")
38-
39-
4035
enum_start (gegl_dropshadow_grow_shapeig)
4136
enum_value (GEGL_DROPSHADOW_GROW_SHAPE_SQUAREig, "squareig", N_("Square"))
4237
enum_value (GEGL_DROPSHADOW_GROW_SHAPE_CIRCLEig, "circleig", N_("Circle"))
@@ -69,7 +64,7 @@ property_double (y, _("Y"), 0.0)
6964

7065

7166

72-
property_double (radius, _("Blur radius"), 2.5)
67+
property_double (radius, _("Blur radius"), 9)
7368
value_range (0.0, 40.0)
7469
ui_range (0.0, 30.0)
7570
ui_steps (1, 5)
@@ -91,20 +86,13 @@ property_double (opacity, _("Opacity"), 1.2)
9186
ui_steps (0.01, 0.10)
9287

9388

94-
property_color (notouch, _("Don't touch. Needed for filter to work"), "#")
95-
ui_meta ("role", "output-extent")
9689

9790

9891
property_color (value2, _("Color"), "#fbff00")
9992
description (_("The color to paint over the input"))
10093
ui_meta ("role", "color-primary")
10194

102-
property_int (mradius, _("Radius"), 1)
103-
value_range (0, 1)
104-
ui_range (0, 1)
105-
ui_meta ("unit", "pixel-distance")
106-
description (_("Neighborhood radius, a negative value will calculate with inverted percentiles"))
107-
ui_meta ("role", "output-extent")
95+
10896

10997

11098
property_double (fixoutline, _("Median to fix non-effected pixels on edges"), 60)
@@ -127,6 +115,10 @@ static void attach (GeglOperation *operation)
127115
{
128116
GeglNode *gegl = operation->node;
129117
GeglNode *input, *it, *shadow, *c2a, *white, *color, *nop, *color2, *eblack, *atop, *median2, *in, *nop2, *output;
118+
GeglColor *black_color = gegl_color_new ("#000000");
119+
GeglColor *hidden_color = gegl_color_new ("#00ffffAA");
120+
121+
130122

131123
input = gegl_node_get_input_proxy (gegl, "input");
132124
output = gegl_node_get_output_proxy (gegl, "output");
@@ -148,7 +140,8 @@ static void attach (GeglOperation *operation)
148140

149141
color = gegl_node_new_child (gegl,
150142
"operation", "gegl:color-overlay",
151-
NULL);
143+
"value", hidden_color, NULL);
144+
152145

153146
color2 = gegl_node_new_child (gegl,
154147
"operation", "gegl:color-overlay",
@@ -170,13 +163,13 @@ static void attach (GeglOperation *operation)
170163
NULL);
171164

172165

173-
eblack = gegl_node_new_child (gegl, "operation", "gegl:color-to-alpha", "transparency-threshold", 0.050, NULL);
166+
eblack = gegl_node_new_child (gegl, "operation", "gegl:color-to-alpha", "transparency-threshold", 0.050,
167+
"value", black_color, NULL);
174168

175169

176-
median2 = gegl_node_new_child (gegl,
177-
"operation", "gegl:median-blur",
178-
NULL);
179-
170+
median2 = gegl_node_new_child (gegl, "operation", "gegl:median-blur",
171+
"radius", 1,
172+
NULL);
180173

181174

182175

@@ -195,14 +188,10 @@ gegl_operation_meta_redirect (operation, "x", shadow, "x");
195188

196189
gegl_operation_meta_redirect (operation, "y", shadow, "y");
197190

198-
gegl_operation_meta_redirect (operation, "notouch", color, "value");
199191

200-
gegl_operation_meta_redirect (operation, "mradius", median2, "radius");
201192

202193
gegl_operation_meta_redirect (operation, "fixoutline", median2, "alpha-percentile");
203194

204-
gegl_operation_meta_redirect (operation, "eblack", eblack, "color");
205-
206195
gegl_operation_meta_redirect (operation, "string", it, "string");
207196

208197

0 commit comments

Comments
 (0)