Aye, 3 lines in PGS
var circles = List.of(new PVector(355, 198, 43), new PVector(407, 260, 32), new PVector(475, 164, 15), new PVector(301, 290, 54), new PVector(187, 150, 95));
var circlesShape = PGS_Conversion.flatten(circles.stream().map(c -> createShape(ELLIPSE, c.x, c.y, c.z * 2, c.z * 2)).toList());
shape(PGS_Morphology.dilationErosion(circlesShape, mouseX));