span

Gets the smallest axis-aligned rectangle that contains all filled cells. Returns an object of the form { row, col, width, height }, or undefined if the quadrille is entirely empty.

Example

(mouse click to toggle emojis; press any key to randomize the quadrille)

edit, then run

Syntax

{ row, col, width, height } | undefined = quadrille.span

What this page's examples use
p5.quadrille
drawQuadrille createQuadrille cellLength mouseRow mouseCol fill clear randomize isValid isFilled span
p5.js
createCanvas background

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.