createQuadrille(width, image)
Converts an image (a p5.Image, p5.Graphics) or video p5.MediaElement into a quadrille with the specified number of columns (width), pixelating the image into cells.
Example
Note
createQuadrille(width, image)converts an image into a quadrille, with each cell representing a sub-image.
Syntax
createQuadrille(width, image)
Parameters
| Param | Description |
|---|---|
width |
Number: The total number of columns for the quadrille |
image |
p5.Image, p5.Graphics or video p5.MediaElement: The image to be pixelated into the quadrille |
What this page's examples use
- p5.quadrille
drawQuadrillecreateQuadrillecellLength- p5.js
createCanvasbackgroundloadImage
Names the analysis can prove are called, and the line each one is documented on. Local variables and members of an unknown receiver are left out.