Quadrille.textColor

Defines the default text color used for drawing the quadrille cells. The default value is Quadrille.textColor, which is 'DodgerBlue'.

Example

edit, then run

Note

  • q1 is drawn with a text color controlled by the local color picker (localPicker), initialized to 'magenta'.
  • q2, q3, and q4 use the global Quadrille.textColor set by the global color picker (globalPicker).

Syntax

drawQuadrille(quadrille, { textColor })

Parameters

Param Description
textColor String | p5.Color: Specifies the color used for drawing the text. The default is Quadrille.textColor, which is 'DodgerBlue'
What this page's examples use
p5.quadrille
drawQuadrille createQuadrille cellLength textColor
p5.js
createCanvas background value position input createColorPicker

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.