Click the green flag, sit back, enjoy. Please feel free to remix.
Code by @heldlaw, December 3, 2023. I got the idea for this project while attempting to make a trefoil knot in Shadertoy (which turned out to be much harder). https://www.shadertoy.com/view/M3tXW4 ABOUT THE CODE There are 180 clones, each independently calculating the parametric equation, applying the 3D rotations and mapping the result to screen coordinates. Simple perspective; no shading. ABOUT TREFOIL KNOT https://en.wikipedia.org/wiki/Trefoil_knot SIMILAR PROJECTS "3D Trefoil Knots" by @Scratch-Minion https://scratch.mit.edu/projects/235739892/