Is it possible to create a multi-stop radial gradient with GEGL?

I’m new to GEGL and am trying to create a multi-colored gradient with it. So far I’ve only been able to create single colored versions with the default liner and radial operations. Is there an operation one can use to create gradient spectrums or is there a method of using the standard operations for emulating a gradient with multiple color stops?

Thanks

Hello! Maybe this can help? https://gitlab.gnome.org/GNOME/gegl/-/blob/master/operations/workshop/gradient-map.c

Hello! Thanks for the pointer. Unfortunately, this looks to be a linear gradient, and not a radial one.

Upon further experimentation, it looks like I will need a radial mask to properly compose every color stop, since the gradient operation does not provide hard edges at both ends. Currently I don’t see something like this among the current GEGL operators.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.