Klein Bottle Life

Drag to orbit • Scroll to zoom
Life steps per second:

This is Conway's Game of Life on the surface of a Klein bottle.

Video

Implemented using WebGPU.

Rendering code adapted from WebGPU Samples, licensed under the BSD 3-Clause License.

Game of Life shader adapted from Your first WebGPU app (Google Chrome team), licensed under Apache 2.0.

© 2025 by Alan deLespinasse, who obviously has nothing more important to do.

Source code

H: Toggle help window
R: Reset camera
A: Toggle animation
M: Toggle ant mode
+: Increase Life speed
-: Decrease Life speed
Space: Single Life iteration