Quadrille.cellLength

Defines the drawing cell length for quadrilles in pixels. The default is Quadrille.cellLength, which is 100.

Example

edit, then run

Note

  • q1 is drawn with a cell length controlled by the local slider (localSlider), initialized to 30 pixels.
  • q2, q3, and q4 use the global Quadrille.cellLength set by the global slider (globalSlider), which is initially 40 pixels.

Syntax

drawQuadrille(quadrille, { cellLength })

Parameters

Param Description
cellLength Number: Specifies the cell length in pixels. The default is Quadrille.cellLength, which is 100
What this page's examples use
p5.quadrille
drawQuadrille createQuadrille cellLength
p5.js
createCanvas background value position input createSlider

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.