createQuadrille(width, string)

Creates a quadrille and fills its cells using the characters from the provided string. The number of columns is defined by width, and the characters are arranged across multiple rows if necessary.

Example

edit, then run

Note

The createQuadrille(width, string) function allows you to control the number of columns (width) while filling the quadrille with the characters from the provided string. Characters will automatically overflow into additional rows as needed.

Syntax

createQuadrille(width, string)

Parameters

Param Description
width Number: The total number of columns for the quadrille
string String: The string used to fill the quadrille cells. Each character 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.