some constructions lend themselves to generative programming easier than others.
in tropics, I use a simple program with minimal parameters that generate a somewhat random combination of circles with a palette reminiscent of tropical moods.
I invite you to inspect the javascript and attempt to understand the logic yourself — I've included helpful comments.
lp