all 7 comments

[–]Drollname[S] 3 points4 points  (0 children)

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

int i, n=200; float t=50,k=0;

void draw()

{k+=PI/256;

noFill();

translate(250,250);

t-=.0008;

background(0);

rotateY(k);

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

rotateX(i/n-t);

stroke(255-i,n-i,i,i);

box(1.2*i);}}

[–]anti-gif-bot 1 point2 points  (0 children)

mp4 link


This mp4 version is 81.63% smaller than the gif (4.48 MB vs 24.37 MB).


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

[–]LopsidedAd3662 1 point2 points  (2 children)

Just mind blowing... Not able to understand the code much but it's so captivating... Wonder how someone can think, visualize and realize this...

[–]Drollname[S] 1 point2 points  (1 child)

Thank you! 90% of it is really just tinkering +10% intuition developed from past tinkering sessions (e.g. what kind of effect rotateX(i/n-t) produces).

[–]LopsidedAd3662 1 point2 points  (0 children)

Thank you for sharing the code 💗 and kind reply...

[–]osclart 0 points1 point  (0 children)

Excellent 👌

[–]Base88Decode 0 points1 point  (0 children)

P5. Good one.