Mootools 1.4.5, HTML, CSS, JavaScript
Layout a grid of cells
No-Library (pure JS), HTML, CSS, JavaScript
ideally you'd use a texture atlas (google it) but if you're trying to use random textures this works. Lots of issue with this code. It's not compatible with context lost events an it uses lots of globals.
The spec says the backbuffer should only be composited if it's modified. this sample is NOT modifying the backbuffer a but is getting cleared.