XYT playground

color = f(x, y, t)

Every pixel is a formula of its position and the time. A few lines of text compile to a GPU shader that paints the frame, at any resolution.

0
Touch the picture to read f(x, y, t) at that pixel.
0.00 / 4 s

Code

Pick an example or edit the text. It recompiles as you type, and the last working version keeps playing while there are errors.

    Measure this animation

    Renders its first 4 seconds at 30 fps and 256 pixels tall, then compares the program text with storing the pixels, plain or run-length encoded.

    Language reference

    The compact reference written for language models. The full one is in docs/language.md.

    Show the reference