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)
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
drawQuadrillecreateQuadrillecellLengthmouseRowmouseColrandclear- 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.