<< back

event horizon

prompt: "bathed in joy of necromantic/demonic power"

idea: a black hole event horizon.

disclaimer: mathematically, this bears no accurate resemblance to an actual event horizon. I tried to create a "warped" representation of a 2d grid with beziers and ended up getting so frustrated by p5's API that I had to make an entire bezier visualizer just to understand what I was doing.

written 2023-03-30 during RC creative coding meetup


Math note: in order to join the curves smoothly, I set the control point of the new curve along the tangent vector to the termination of the previous curve. In other words, the two curves being joined will both be tangent to the same tangent vector, resulting in a differentiable (or smooth) join. diagram of calculations for obtaining point along tangent vector