How do i make a tunnel thing similar to the one in spirals?


#1

it’s in the part that starts about here https://youtu.be/kPUdhm2VE-o?t=150

OsciStudio Version: A 6
Operating System: windows


#2

there’s no simple answer, but here is a start:

SLIDER(dx,-1..1);
SLIDER(dy,-1..1);
SLIDER(bright);
PHASOR(offset).setRange("freq",0,2).setDefaultValue("freq",1);

vec3 gen(float t){
	t = tri(t); // back and forward
	t = pow(t,2.5+2*bright); // outside brighter
	vec3 v;

	v = circle(6*t+1-offset) * (1-t); 
	v.x += scale_lin(pow(t,0.5),0,1,0,dx);
	v.y += scale_lin(pow(t,0.5),0,1,0,dy);
	return v;
}

play the sliders and then animate it all :slight_smile: