clear()

Clears all cells in the quadrille, setting each cell to empty (i.e., null).

Example

(click or press any key to toggle between clearing all cells and resetting to random colors)

edit, then run

Note

Empty cells appear black because the background is set to black (background(0)).

Syntax

clear()

What this page's examples use
p5.quadrille
drawQuadrille createQuadrille cellLength 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.