(Complex) Mesh gradients

Is it possible to create (complex) 2D mesh gradients in Processing? Below a basic example image made in illustrator.

If yes, how would I go about doing this? I’m searching in the direction of per vertex coloring (see this discussion: Per-vertex color gradient fill). But this only allows for colors in each corner. Is there a possibility to use locations for each color within a x-y-field?
Or maybe there is a better approach?

1 Like

You should be able to do these kind of gradients via diffusion curves:

Crude example – could probably do with a blur pass:


I can share code if it looks like a viable solution.

1 Like


Do a search for “plasma” on Open Processing.


1 Like