Artifying Peter de Jong With p5.js
Not to get super math-y, but the way to do such gorgeous graphs (picture below) is basically by following this formula.
You can play around with this sketch by adjusting the sliders and pressing re-draw
Here are some of my explorations