Here's a p5js sketch using WEBGL to do something similar. Not as flexible as the shadertoy, but arguably simpler to interact with: https://openprocessing.org/sketch/2203876
(y * 4 & x *4) % (frameCount / 10 % 300)
I always think of this pattern geometrically so it’s weird to see it pop out in simple math.