/Gallery Web demo All effects ← Site

Spiral Battle

Three colors hunt each other into swirling vortices.

Pixel Scenes · a single painted seed plus one Phlux rule, simulated live · 96×96 grid

Spiral Battle — animated pixel art loop generated in Phluxel
Every frame above was generated by the simulation, not drawn by hand.

The rule that makes it move

This is the whole thing. Phluxel runs it on every cell, every step — the animation is what happens when you repeat it.

Rock-Paper-ScissorsPhlux
PARAM _beat = 700; LET _sr = +(-1:1,-1:1).R; LET _sg = +(-1:1,-1:1).G; LET _sb = +(-1:1,-1:1).B; R >= G & R >= B ? (_sg > _beat ? [255,0,255,0] : [255,255,0,0]) : (G >= B ? (_sb > _beat ? [255,0,0,255] : [255,0,255,0]) : (_sr > _beat ? [255,255,0,0] : [255,0,0,255]))

Paste it into the Rule Editor, or pick Rock-Paper-Scissors from the template list and skip the typing.

Make it yourself

  1. Open Phluxel and start a new field, or click Spiral Battle in the starter gallery to get this exact setup.
  2. Turn Wrap edges on — this one is toroidal, so motion that leaves one side comes back on the other.
  3. Press play. Change colours or numbers while it runs; you never have to stop and restart.
  4. Export a seamless loop as GIF, APNG, MP4, a PNG sequence, or a sprite sheet.

Try it without installing anything

Phluxel runs in the browser as a demo, and the free desktop edition has every feature with a watermark on exports.

Open the browser demo Download free (Windows) Wishlist on Steam

More from Pixel Scenes

CampfireCrackling flames rise from glowing embers between the logs. Snowy NightSnow drifts down over a moonlit winter scene. Slime in RainA cheerful slime braves the rain — drops pass right behind it. Ghost WispsA pixel ghost sheds glowing soul-wisps that float away. All 62 effectsThe complete starter gallery.