Life on a Canvas
May 31, 2009
I decided to dive into HTML 5 and canvases this weekend and created a simulation of Conway’s Game of Life.
The simulation, powered by JavaScript, requires a browser with HTML 5 capabilties (Chrome, or a newer version of Firefox or Safari will do). I’ve added in a bunch of controls such as render speed, block size, and premade patterns. I also created the ability to ‘draw’, or spawn life forms by clicking and dragging the mouse around the canvas. I’ll admit, my JavaScirpt probably isn’t 100% optimized, so the simulation may slow down a bit if you spawn a lot of blocks.