Mosaic effect for Pixastic, an image processing library written in JavaScript.