Wednesday, March 2, 2011

Some HTML5 Fun

I’ve been playing around with HTML5 and with the <canvas> tag in particular. It’s pretty neat – especially how quickly you can put something together.

I’d been looking at Conway's Game of Life and thought it’d be a fun way to dig into something slightly more complex than just drawing lines on the canvas tag (boring! :).

I pretty quickly had something up and running and found the game fun to watch. I chose to use a random start state, but this could be easily tweaked to use some of the well-known start states which produce cool effects (see the Wikipedia article for some of those).

I’m planning on Open Sourcing it shortly (it’s nothing awesome, but I thought I’d share it anyway).

Here’s a screen shot of it “in action”:



 I'll follow up shortly with its new home.

3 comments:

  1. Al - Glad to see you doing the HTMLs. Personally, I learned all I need to know from this fantastic HTMLs site... http://welcome.to/mytrailerparkpage.

    Best,
    Matt Glenn

    ReplyDelete
  2. Thanks Matt, there are some pretty intense HTMLs on that page. People are doing some pretty amazing stuff out there on the interwebs.
    P.S. I thought I saw you in one of those photos.

    ReplyDelete
  3. I was the guy holding the gun looking a bit threatening. The first time I saw that page (like 1998) I almost puked from laughing.

    ReplyDelete