/Gallery Web demo All effects ← Site

Midnight Noodles

Lanterns glow over a noodle stand at the water's edge.

Astra Scenes · a painted scene plus one Phlux rule, simulated live · 256×192 grid · 48-step seamless loop

Midnight Noodles — animated pixel art loop generated in Phluxel
One painted still, one rule, 48 steps. Every frame above came out of the simulation.

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. BASE is the painted scene, so the rule reads the artwork instead of its own output and never smears.

Midnight NoodlesPhlux
// Astra scene. _sx/_sy rescale the 256x192 coordinates to any grid size.
PARAM _motion = 1
PARAM _amount = 0.7
LET _sx = 256/GW
LET _sy = 192/GH
LET _t = {FRAC,TICK*_motion/48}*6.283185307179586
LET _col={FLOOR,X*_sx/9}
LET _offset={NOISE,_col,3}
LET _drop={FRAC,TICK*_motion/48+_offset}*192
LET _k=(Y*_sy>85 & BASE.R<100 & {ABS,X*_sx-_col*9-3}<.6 & Y*_sy<=_drop) ? {SAT01,1-(_drop-Y*_sy)/6}*_amount*.6 : 0
A=255
R=BASE.R+(238-BASE.R)*_k
G=BASE.G+(218-BASE.G)*_k
B=BASE.B+(172-BASE.B)*_k

The coordinates are written for the 256×192 canvas this was painted on; _sx/_sy rescale them, so the same rule works on a smaller grid too. Download the script ↓

Make it yourself

  1. Open Phluxel, click Browse Starters and pick Midnight Noodles — that loads the painted scene and this rule together.
  2. Press play, then drag the _motion and _amount knobs while it runs. You never have to stop and restart.
  3. Paint over the scene, or drop the rule on your own artwork — it reads whatever is underneath.
  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 Astra Scenes

Alpine TransitA cable car climbs between snowy peaks. Florist at NoonFlower boxes bask outside a small shop. Quarter Past ArcadeThree cabinets hum in an empty arcade. Lantern CurrentPaper lanterns drift downstream in the dark. All 90 effectsThe complete starter gallery.