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

edit, then run

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
drawQuadrille createQuadrille cellLength
p5.js
createCanvas background loadImage createCheckbox checked

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.