Data, Maps, Usability, and Performance

Lava Lamp with HTML5 CANVAS

Last updated on August 27, 2012 in Development

lava effect with html5

I like Lava Lamps and today I wanted to create one using CANVAS and a bit of JavaScript. I decided to do this after watching some amazing demos from the 1k Javascript contest. It’s pretty cool what people can write in 1K or less. My lava lamp effect is also written in really tiny amount of JavaScript, just some CANVAS pixel manipulation running in a loop. Check out the demo and look at the source to see the code.

Tags: , ,

Facebook Twitter Hacker News Reddit More...