Star

Created With

linkcreateQuadrille()

p5.js function that creates a quadrille whose individual cells may be defined as numbers (note that a zero define an empty cell, see also filter), 4-length color arrays, images (both, p5.Image and p5.Graphics instances), colors (p5.Color instances) and strings.

linkSyntax

createQuadrille(matrix)

createQuadrille(array)

createQuadrille(width, array)

createQuadrille(string)

createQuadrille(width, string)

createQuadrille(width, height)

createQuadrille(width, image, [coherence])

createQuadrille(width, bitboard, pattern)

createQuadrille(width, height, order, pattern)

linkParameters

matrix2D array: containing any combination of numbers (0's for empty cells), 4-length color arrays, p5 colors and strings
arrayarray: containing any combination of numbers (0's for empty cells), 4-length color arrays, p5 colors and strings
stringString: containing any combination of chars
widthNumber: total number of columns
heightNumber: total number of rows
imagep5.Image instance
coherence[boolean]: define whether or not to use spatial coherence to convert image default is false
bitboardNumber: bitboard big-endian integer representation
orderNumber: total number of non-empty cells
patternp5.Image | p5.Graphics | p5.Color | array | object | string | number | null: empty cells
createQuadrille()SyntaxParameters

Home

p5.js functionschevron_right

Properties

I/Ochevron_right
Boolean operatorschevron_right
Geometry transformationschevron_right
Visual computingchevron_right
Other representationschevron_right

Demo