clear(row, col)

Clears a specific cell in the quadrille, setting it to empty (i.e., null).

Example

(click on any cell to clear it; press any key to reset)

edit, then run

Syntax

clear(row, col)

Parameters

Param Description
row Number: row number of the cell to clear [0..height]
col Number: column number of the cell to clear [0..width]
What this page's examples use
p5.quadrille
drawQuadrille createQuadrille cellLength mouseRow mouseCol rand clear
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.