Click the green flag, sit back, enjoy. Please feel free to remix.
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 FIGURE-EIGHT KNOT https://en.wikipedia.org/wiki/Figure-eight_knot_(mathematics) CREDITS Parametric equation taken from the Wikipedia article (see above). Remixed from my earlier project "Trefoil knot": https://scratch.mit.edu/projects/934435075/