Documentation: Mosaic

Description

This action applies a mosaic effect on the image, creating a pixelated look.

Demo

Block size:

Example usage

var img = new Image();
img.onload = function() {
	Pixastic.process(img, "mosaic", {blockSize:10});
}
document.body.appendChild(img);
img.src = "myimage.jpg";

Parameters

  • blockSize (int)
    Size of the pixelated blocks, value greater than 1.

View source: mosaic.js

Browser support