createQuadrille()
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.
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)
matrix | 2D array: containing any combination of numbers (0's for empty cells), 4-length color arrays, p5 colors and strings |
array | array: containing any combination of numbers (0's for empty cells), 4-length color arrays, p5 colors and strings |
string | String: containing any combination of chars |
width | Number: total number of columns |
height | Number: total number of rows |
image | p5.Image instance |
coherence | [boolean]: define whether or not to use spatial coherence to convert image default is false |
bitboard | Number: bitboard big-endian integer representation |
order | Number: total number of non-empty cells |
pattern | p5.Image | p5.Graphics | p5.Color | array | object | string | number | null : empty cells |