Javascript Snow with Canvas

December 24th, 2010 posted by codders

Seasons greetings!

I was trying to project some snow onto my wall the other day, and realised that it was actually surprisingly difficult to get decent javascript snow that settles at the bottom of the screen – none of the examples I found did the business.

So there you have it. It’s a little bit CPU intensive and a little bit simple in the head, but it basically works. Code is on github (http://github.com/codders/snow) and there’s a bigger demo on prospero.

Any tips on how to make it perform better or look more like snow would be more than welcome.

Merry Christmas :)