Shader Toy demo

Reproducing this beautiful tweet

Step 1:

Go to https://www.shadertoy.com/new

Step 2: Paste the below code in

Then run!

void mainImage( out vec4 fragColor, in vec2 fragCoord ) { vec2 p = (fragCoord.xy * 2.0 - iResolution.xy) / iResolution.y * 0.5 - 0.5; vec3 C = vec3(0.0); for (float i = 1.0; i < 99.0; i++) { float j = i + 1.0; vec2 q = p - vec2(sin(j + 1.0), sin(j + iTime)) / (sin(iTime - j / 8.0 + 9.0) + 1.0) * 0.1; C += 0.01 / length(q * 99.0); } fragColor = vec4(C * 5.0, 0.0); }
Built with Scroll v136.2.1