trim()

Returns a new quadrille trimmed to its minimal span of filled cells. Returns undefined if the quadrille has no filled cells.

Example

(press mouse or press keys to randomize chess pattern)

edit, then run

Syntax

trim()

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