createQuadrille(width, image, coherence)
Converts an image (a p5.Image, p5.Graphics, or a video p5.MediaElement) into a pixelated quadrille. The coherence parameter must be provided to control spatial coherence; omitting it invokes createQuadrille(width, image).
Example
Syntax
createQuadrille(width, image, coherence)
Parameters
| Param | Description |
|---|---|
width |
Number: The total number of columns for the quadrille |
image |
p5.Image, p5.Graphics, or p5.MediaElement: The image to be pixelated into the quadrille |
coherence |
Boolean: Defines whether to preserve spatial coherence when converting the image. Required |
What this page's examples use
- p5.quadrille
drawQuadrillecreateQuadrillecellLength- p5.js
createCanvasbackgroundloadImagecreateCheckboxchecked
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.