r/creativecoding 2d ago

plasma

Made with my perfect loop gif web app

151 Upvotes

7 comments sorted by

4

u/ousarotoki 2d ago

That's very cooool!

3

u/szkarpaty 2d ago

fun, colour palette is dope too

2

u/First_Buy8488 1d ago

Big preesh!

2

u/Equivalent_Feed_3176 1d ago

Cool! Any more info?

2

u/First_Buy8488 1d ago

I can post the code snippet, later

2

u/First_Buy8488 1d ago
 float sphereMesh = abs(sdSphere(p, 1.2)) - 0.06;
          vec3 r1 = p; r1.xy *= rot(t);
          float ring1 = sdTorus(r1, vec2(1.38, 0.06));
          vec3 r2 = p; r2.yz *= rot(t + PI * 0.3333);
          float ring2 = sdTorus(r2, vec2(1.48, 0.06));
          float coreOrb = sdSphere(p, 0.5 + 0.08 * sin(t * 3.0));
          d = min(sphereMesh, min(ring1, min(ring2, coreOrb)));