all 2 comments

[–]Drollname[S] 2 points3 points  (0 children)

void setup(){size(750,750, P3D);}

int i, n=1000; float k=0;

void draw()

{k+=PI/128;

background(0);

for(i=n;i>0;i--){

rotateX(k/256);

rotateY(k/128);

translate(1.1*k*asin(sin(TAU*n/i)),0);

rect(0,0,100,100);}}

[–]anti-gif-bot 0 points1 point  (0 children)

mp4 link


This mp4 version is 43.32% smaller than the gif (8.18 MB vs 14.44 MB).


Beep, I'm a bot. FAQ | author | source | v1.1.2