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)
Note
Empty cells appear black because the background is set to black (
background(0)).
Syntax
clear()
What this page's examples use
- p5.quadrille
drawQuadrillecreateQuadrillecellLengthrandclear- p5.js
createCanvasbackgroundcolor
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.