@@ -150,24 +150,28 @@ property_double(layeropacity, _("Opacity of Image File Overlay"), 1.0)
150150ui_meta ("visible" , "guichange {imagegradient}" )
151151
152152
153- property_color (optioncolor , _ ("Optional Color Overlay" ), "#ffffff" )
153+ property_color (optioncolor , _ ("Color Overlay (only works on white text) " ), "#ffffff" )
154154 ui_meta ("visible" , "guichange {strokeshadow}" )
155155
156156
157+ property_boolean (effectsswitchbevel , _ ("Enable Bevel (requires new gegl:bevelbump)" ), FALSE)
158+ description (_ ("Please update to the latest version of GEGL Bevel to use this feature" ))
159+ ui_meta ("visible" , "guichange {innerglowbevel}" )
160+
157161
158- property_int (depth , _ ("Bevel Depth --ENABLE BEVEL " ), 1 )
162+ property_int (depth , _ ("Bevel Depth" ), 30 )
159163 description (_ ("Filter width" ))
160164 value_range (1 , 100 )
161165 ui_meta ("visible" , "guichange {innerglowbevel}" )
162166
163- property_double (bevel1 , _ ("Rotate Bevel Lighting (90 resets) " ), 90 .0 )
167+ property_double (bevel1 , _ ("Rotate Bevel Lighting" ), 60 .0 )
164168 description (_ ("Elevation angle (degrees)" ))
165169 value_range (55 , 125 )
166170 ui_meta ("unit" , "degree" )
167171 ui_meta ("visible" , "guichange {innerglowbevel}" )
168172
169173
170- property_double (radius1 , _ ("Radius of Bevel" ), 7 .0 )
174+ property_double (radius1 , _ ("Radius of Bevel" ), 2 .0 )
171175 value_range (1.0 , 12.0 )
172176 ui_range (1.0 , 12 )
173177 ui_gamma (1.5 )
@@ -199,19 +203,19 @@ property_enum (blendmodebevel2, _("Blend Mode of Bevel's emboss'"),
199203
200204
201205
202- property_int (osdepth , _ ("Bevel Outline Depth" ), 1 )
206+ property_int (osdepth , _ ("Bevel Outline Depth" ), 12 )
203207 description (_ ("Filter width" ))
204208 value_range (1 , 70 )
205209 ui_meta ("visible" , "guichange {outlinespecial}" )
206210
207- property_double (osbevel , _ ("Rotate Bevel Lighting (90 resets)" ), 90 .0 )
211+ property_double (osbevel , _ ("Rotate Bevel Lighting (90 resets)" ), 80 .0 )
208212 description (_ ("Elevation angle (degrees)" ))
209213 value_range (55 , 125 )
210214 ui_meta ("unit" , "degree" )
211215 ui_meta ("visible" , "guichange {outlinespecial}" )
212216
213217
214- property_double (osradius , _ ("Radius of Bevel" ), 7 .0 )
218+ property_double (osradius , _ ("Radius of Bevel" ), 3 .0 )
215219 value_range (1.0 , 12.0 )
216220 ui_range (1.0 , 12 )
217221 ui_gamma (1.5 )
@@ -603,7 +607,7 @@ update_graph (GeglOperation *operation)
603607 if (o -> gradient )
604608 {
605609 /* both innerglow and gradient */
606- gegl_node_link_many (state -> input , state -> nopimage , state -> atopi , state -> nopg , atopg , state -> crop , state -> nopm , state -> multiply , state -> nopb , multiplyb , state -> nopig , over , state -> stroke , state -> ds , state -> output , NULL );
610+ gegl_node_link_many (state -> input , state -> nopimage , state -> atopi , state -> nopm , state -> multiply , state -> nopg , atopg , state -> crop , state -> nopb , multiplyb , state -> nopig , over , state -> stroke , state -> ds , state -> output , NULL );
607611 gegl_node_link_many (state -> nopimage , state -> image , state -> saturation , NULL );
608612 gegl_node_link_many (state -> nopig , state -> innerglow , NULL );
609613 gegl_node_link_many (state -> nopb , state -> mbd , NULL );
@@ -617,7 +621,7 @@ update_graph (GeglOperation *operation)
617621 else
618622 {
619623 /* innerglow but no gradient */
620- gegl_node_link_many (state -> input , state -> nopimage , state -> atopi , state -> crop , state -> nopm , state -> multiply , state -> nopb , multiplyb , state -> nopig , over , state -> stroke , state -> ds , state -> output , NULL );
624+ gegl_node_link_many (state -> input , state -> nopimage , state -> atopi , state -> nopm , state -> multiply , state -> crop , state -> nopb , multiplyb , state -> nopig , over , state -> stroke , state -> ds , state -> output , NULL );
621625 gegl_node_link_many (state -> nopimage , state -> image , state -> saturation , NULL );
622626 gegl_node_link_many (state -> nopig , state -> innerglow , NULL );
623627 gegl_node_link_many (state -> nopb , state -> mbd , NULL );
@@ -633,7 +637,7 @@ update_graph (GeglOperation *operation)
633637 if (o -> gradient )
634638 {
635639 /* gradient but no innerglow */
636- gegl_node_link_many (state -> input , state -> nopimage , state -> atopi , state -> nopg , atopg , state -> crop , state -> nopm , state -> multiply , state -> nopb , multiplyb , state -> stroke , state -> ds , state -> output , NULL );
640+ gegl_node_link_many (state -> input , state -> nopimage , state -> atopi , state -> nopm , state -> multiply , state -> nopg , atopg , state -> crop , state -> nopb , multiplyb , state -> stroke , state -> ds , state -> output , NULL );
637641 gegl_node_link_many (state -> nopimage , state -> image , state -> saturation , NULL );
638642 gegl_node_link_many (state -> nopb , state -> mbd , NULL );
639643 gegl_node_link_many (state -> nopm , state -> mcol , NULL );
@@ -645,7 +649,7 @@ update_graph (GeglOperation *operation)
645649 else
646650 {
647651 /* neither gradient nor innerglow */
648- gegl_node_link_many (state -> input , state -> nopimage , state -> atopi , state -> crop , state -> nopm , state -> multiply , state -> nopb , multiplyb , state -> stroke , state -> ds , state -> output , NULL );
652+ gegl_node_link_many (state -> input , state -> nopimage , state -> atopi , state -> nopm , state -> multiply , state -> crop , state -> nopb , multiplyb , state -> stroke , state -> ds , state -> output , NULL );
649653 gegl_node_link_many (state -> nopimage , state -> image , state -> saturation , NULL );
650654 gegl_node_link_many (state -> nopb , state -> mbd , NULL );
651655 gegl_node_link_many (state -> nopm , state -> mcol , NULL );
@@ -715,7 +719,7 @@ static void attach (GeglOperation *operation)
715719
716720
717721 mbd = gegl_node_new_child (gegl ,
718- "operation" , "gegl:bevel " ,
722+ "operation" , "gegl:bevelbump " ,
719723 NULL );
720724
721725
@@ -905,9 +909,9 @@ lchcolorig = gegl_node_new_child (gegl,
905909 gegl_operation_meta_redirect (operation , "radiusstroke" , stroke , "blurstroke" );
906910 gegl_operation_meta_redirect (operation , "grow_radiusstroke" , stroke , "stroke" );
907911 gegl_operation_meta_redirect (operation , "colorstroke" , stroke , "color" );
908- gegl_operation_meta_redirect (operation , "depth" , mbd , "bevel2 " );
909- gegl_operation_meta_redirect (operation , "radius1" , mbd , "radius1 " );
910- gegl_operation_meta_redirect (operation , "bevel1" , mbd , "bevel1 " );
912+ gegl_operation_meta_redirect (operation , "depth" , mbd , "depth " );
913+ gegl_operation_meta_redirect (operation , "radius1" , mbd , "radius " );
914+ gegl_operation_meta_redirect (operation , "bevel1" , mbd , "elevation " );
911915 gegl_operation_meta_redirect (operation , "optioncolor" , mcol , "value" );
912916 gegl_operation_meta_redirect (operation , "src" , image , "src" );
913917 gegl_operation_meta_redirect (operation , "innerggrow_radius" , innerglow , "grow-radius" );
@@ -932,6 +936,7 @@ lchcolorig = gegl_node_new_child (gegl,
932936 gegl_operation_meta_redirect (operation , "oslightness" , stroke , "lightness" );
933937 gegl_operation_meta_redirect (operation , "enableoutline" , stroke , "enableoutline" );
934938 gegl_operation_meta_redirect (operation , "blendmodebeveloutline" , stroke , "blendmodebeveloutline" );
939+ gegl_operation_meta_redirect (operation , "effectsswitchbevel" , mbd , "effectsswitchbevel" );
935940
936941 /* Now save points to the various gegl nodes so we can rewire them in
937942 * update_graph() later
@@ -1011,7 +1016,7 @@ gegl_op_class_init (GeglOpClass *klass)
10111016 "title" , _ ("GEGL Effects Continual Version" ),
10121017 "categories" , "Generic" ,
10131018 "reference-hash" , "continual45ed565h8500fca01b2ac" ,
1014- "description" , _ ("GEGL text styling and speciality image outlining filter. Text recoloring only works if the color is white (march 31 2023 stable build) "
1019+ "description" , _ ("GEGL text styling and speciality image outlining filter. (April 3 2023 stable build) "
10151020 "" ),
10161021 NULL );
10171022}
0 commit comments