fill(row, value)

Fills an entire row in the quadrille with the specified value.

Example

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

edit, then run

Syntax

fill(row, value)

Parameters

Param Description
row Number: The row index to fill [0..height]
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 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.