Text Color

textColor #

Defines the quadrille default text drawing color. Default is white.

Used by drawQuadrille.

Example #

code
Quadrille.textColor = 'magenta';
let quadrille;
let colorPicker;

function setup() {
  createCanvas(6 * Quadrille.cellLength, 4 * Quadrille.cellLength);
  quadrille = createQuadrille(5, 'hola mundo');
  colorPicker = createColorPicker(Quadrille.textColor);
  colorPicker.position(width - 60, 10);
  colorPicker.input(() => Quadrille.textColor = colorPicker.value());
}

function draw() {
  background('orange');
  drawQuadrille(quadrille);
}

Syntax #

Quadrille.textColor