g.js — graphical objects for JavaScript

mosaicmosaic

Create a mosaic out of an image.

var i = g.import('leaf.jpg');
g.mosaic(i, 10);

Parameters

  • image: The input image.
  • blockSize: The size of a single colored block in the image.