Can someone point me in the right direction regarding coding this:

http://hakim.se/experiments/html5/blob/03/

I don't know where to start in terms of HTML5 Canvas physics etc.

Any help would be much appreciated.

Thanks,

Tayler