/Gallery Web demo All effects ← Site

Stained Glass

Scattered color seeds flood outward into a glowing mosaic.

Generative Art · a single painted seed plus one Phlux rule, simulated live · 96×96 grid

Stained Glass — 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.

Mosaic GrowthPhlux
LET _s = +(-1:1,-1:1).R + +(-1:1,-1:1).G + +(-1:1,-1:1).B; R + G + B == 0 & _s > 0 ? [255, {MAX,(-1:1,-1:1).R}, {MAX,(-1:1,-1:1).G}, {MAX,(-1:1,-1:1).B}]

Paste it into the Rule Editor, or pick Mosaic Growth from the template list and skip the typing.

Make it yourself

  1. Open Phluxel and start a new field, or click Stained Glass 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 Generative Art

Coral GardenReaction-diffusion corals bloom and split like living cells. Zebra StripesTuring-pattern stripes self-organize out of pure noise. Chemical SpiralsA simulated chemical reaction swirls into psychedelic spirals. Spiral GalaxyA rainbow galaxy spins forever — pure math from each pixel's angle and distance, no frames. All 62 effectsThe complete starter gallery.