Skip to content

Instantly share code, notes, and snippets.

@bfeitknecht
Last active March 24, 2026 15:27
Show Gist options
  • Select an option

  • Save bfeitknecht/b4a7b46efa8b99ba9fd4920a1480ce2b to your computer and use it in GitHub Desktop.

Select an option

Save bfeitknecht/b4a7b46efa8b99ba9fd4920a1480ce2b to your computer and use it in GitHub Desktop.
SVG runs GOL with JS

SVG runs GOL with JS

Conway's Game of Life in SVG

Apparently, scalable vector graphics files can run JavaScript via <script> tags. It probably runs Doom too but I've never implemented Conway's Game of Life so that's what you get instead. You need to download and open in your own browser to see it in action due to security settings from GitHub disabling these tags to run.

curl -LO "https://gist.githubusercontent.com/bfeitknecht/b4a7b46efa8b99ba9fd4920a1480ce2b/raw/bb13b22e81468505a37098bef2c95e3bb7959b0a/gol.svg"
open -a Safari.app gol.svg
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment