fill(row, col, value)

Fills a specific cell in the quadrille with the specified value.

Example

(click on any cell to fill it with white; press any key to reset)

edit, then run

Syntax

fill(row, col, value)

Parameters

Param Description
row Number: row number of the cell to fill [0..height]
col Number: column number of the cell to fill [0..width]
value1 Any: A valid JavaScript value
  1. A plain function value is stored, not called — it becomes a per-cell display routine ({ row, col, options }) => { ... } (see options). To have a function evaluated per cell at fill time — a fresh object or a varied tile per cell — tag it: Quadrille.factory(({ row, col }) => new Object(...)). ↩
What this page's examples use
p5.quadrille
drawQuadrille createQuadrille cellLength mouseRow mouseCol rand fill
p5.js
createCanvas background color

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.