UNPKG

game-of-life-d3-boots

Version:

conway's game of life with a small bit of interactivity. an observer can click on a square to "infect" it (turn its living color to red). then, whenever that cell is live, it will "infect" its living neighbors

20 lines 321 B
<html> <head> <meta charset="UTF-8"> <title>Game of Life with D3</title> <style> html, body { margin: 0; padding: 0; } svg, svg .cell, svg circle { shape-rendering: crispEdges; } </style> </head> <body> <script src="./game-of-life-d3-boots.js"></script> </body> </html>