This browser has no WebGPU, so the sketch cannot run here. The program is below, and it runs in a current Chrome, Edge or Safari.

Feedback Tunnel

Open in new tab ↗

////////////////////////////////////////////////////
// feedback-tunnel
// Concept: viewport feedback
// Use a viewport to look at its own result

// hint -- try gently orbiting around and zooming... 
////////////////////////////////////////////////////

&time = mlt(step, 0.04);

#A{
   dim = (512,512,1);
   set = C;
   run = mlt(0.9, ^cam);
   every = 5;
}

~A{
   col = #A;
}

~B{
   shape = ICO;
   col = (1,0,0);
   scl = (0.1);
   pos = mlt(0.7, (cos(&time), sin(&time), 0.1));
}

^cam{
   pos = (0,0,2.5);
   bg = (0.6);
}