Gray-Scott

Python on the GPU · Fun & games

Two chemicals diffuse and react on a 512-cell torus. Every cell runs step(), a Python function compiled to a WebGPU compute shader. Drag to paint with paint().

16
–– fps
checking GPU against CPython…
Feed refills the food chemical and kill removes the catalyst. Each preset is one feed/kill pair.