Outline Weight

outlineWeight #

Defines the quadrille default outline weight. Default is 2.

Used by drawQuadrille.

Example #

code
let quadrille;
let weightSlider;

function setup() {
  createCanvas(400, 400);
  quadrille = createQuadrille(4, 4);
  weightSlider = createSlider(1, 10, Quadrille.outlineWeight, 0.5);
  weightSlider.position(10, height - 20);
  weightSlider.input(() => Quadrille.outlineWeight = weightSlider.value());
}

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

Syntax #

Quadrille.outlineWeight