This is my implementation of metaballs, inspired by this Coding Train video. I use fragment shaders to render the metaballs, since Processing enable you to write your own shader. Compared to the one I tried written with pure Processing, the speed difference is tremendous. See this video for the demo. Below is a screenshot: