row & col

The row and col parameters define the position of the upper-left corner where the quadrille is drawn, in row and column units.

Example

(move the mouse to position q)

edit, then run

Note

The mouseRow and mouseCol Quadrille properties are used to dynamically position the q quadrille based on the mouse location.

Syntax

drawQuadrille(quadrille, { row, col })

Parameters

Param Description
row Number: The row position of the upper-left corner in units
col Number: The column position of the upper-left corner in units
What this page's examples use
p5.quadrille
drawQuadrille createQuadrille cellLength mouseRow mouseCol
p5.js
createCanvas background color

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.