Game of Life in HTML/Canvas

2011-06-20 23:08:53 PST

Tags: , ,

I’ve been wanting to play with HTML5′s canvas for a bit now and I’ve always liked Conway’s game of life since it was introduced to me in first year CS so it seemed like a good match. In the spare time of a few days I was easily able to cobble it together, and even add some nice controls and one novel (to me) feature: the rainbow color age effect, which cycles the color of the cells and darkens them with age so you can quickly see the age of cells on the board and get a pretty show.

The code is on github and you can see it live on the demo I put up.

HTML5′s canvas is fun for simple things like this. I don’t know how it would a) hold up for more complicated and practical applications, and b) how much “fun” it would still be. Maybe I’ll find out, maybe not.

links for 2010-09-13

2010-09-13 00:02:01 PST

Tags: ,
  • I've been meaning to look into HTML5's microdata, this looked like the dive in intro I hadn't gotten around to finding.

    "Given the amount of industry noise about native video and scripted animations, you�d be forgiven if you had never heard of the new microdata specification included in HTML5. Similar to outside efforts like Microformats, HTML5�s microdata offers a way of extend HTML by adding custom vocabularies to your pages."

Valid XHTML 1.0!
Valid CSS!
Mindstab.net is proudly powered by WordPress
Entries (RSS) and Comments (RSS).
22 queries. 0.475 seconds.