Not OP but if I were to hazard a guess, the points in the middle are a sine wave, while lines are drawn to connect to the wave from the top and bottom edges
This is exactly it! I have two sets of arrays, one storing the values for the sine wave in the center and another to create lines from the top and bottom of the canvas. The illusion of the 3D rotation is actually just given by connecting the first and the last point of the sine array.
Expanding on this a bit. The motion of the center dots involves at least two sinusoidal waves(y-plane and z-plane). Also there seems to be multiple lines coming from each dot on the upper and lower rows of dots, which seems to me like further evidence for 3D.
This is actually purely 2D, and the 3D rotating effect (or as you suggest a rotation on the z-plane) is just an illusion happening by connecting the first and the last points of the sinusoidal wave!
15
u/Iampepeu Jan 09 '20
Ooh! This looks amazing! How did you do it?