Creates a quadrille and fills its cells using the characters from the provided string
. The number of columns in the quadrille matches the length of the string.
Example #
code
let quadrille;
function setup() {
createCanvas(6 * Quadrille.cellLength, 4 * Quadrille.cellLength);
quadrille = createQuadrille('hi 👽');
}
function draw() {
background('orange');
drawQuadrille(quadrille);
}
The createQuadrille(string)
function fills a quadrille with each character of the provided string, where each column represents one character.
Syntax #
createQuadrille(string)
Parameters #
Param | Description |
---|---|
string | String: The string used to fill the quadrille cells. Each character occupies one cell |