Python on the GPU · Fun & games
Each step of the wave equation is wave(), a Python function compiled to a WebGPU compute shader. Click or drag to drop a stone. In Double slit a plane wave from the top meets a wall with two gaps; the two gaps send out circles that overlap and make bands of crests and troughs.