BubblingLava

BubblingLava

BubblingLava — animated lava that cycles through 8 symbols, then moves to an adjacent Lava cell (mirroring the Java implementation).

Java: cycles every 4 ticks, full period = 36 (8 symbols + 1 move tick). At t=8 (frame%36===32) it swaps cells with an adjacent lava cell twice to "flow" in a random direction.