createQuadrille(string)

Creates a quadrille and fills its cells using the characters from the provided string — one column per character, counted as Unicode code points, so an emoji like 👽 occupies a single cell (even though its UTF-16 .length is 2).

Example

edit, then run

Note

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 (Unicode code point) occupies one cell
What this page's examples use
p5.quadrille
drawQuadrille createQuadrille cellLength
p5.js
createCanvas background

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.