Quadrille.cellLength
Defines the drawing cell length for quadrilles in pixels. The default is Quadrille.cellLength, which is 100.
Example
Note
q1is drawn with a cell length controlled by the local slider (localSlider), initialized to30pixels.q2,q3, andq4use the globalQuadrille.cellLengthset by the global slider (globalSlider), which is initially40pixels.
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
drawQuadrillecreateQuadrillecellLength- p5.js
createCanvasbackgroundvaluepositioninputcreateSlider
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.