Click the green flag, sit back, enjoy. Please feel free to remix.
ABOUT THE CODE There are 240 clones, each independently calculating the parametric equation, applying the 3D rotations and mapping the result to screen coordinates. Simple perspective; no shading. ABOUT SQUARE KNOT https://en.wikipedia.org/wiki/Square_knot_(mathematics) CREDITS Parametric equation taken from: https://www.math.uni-bonn.de/people/karcher/VMMPlaneCurves/docs/GrannySquareFig8.pdf Remixed from my earlier project "Trefoil knot": https://scratch.mit.edu/projects/934435075/