magnitude(row)

Returns the number of non-empty cells of a given quadrille row.

Example

edit, then run

Syntax

magnitude(row)

Parameters

Param Description
row Number: row whose filled cells are counted [0..height]
What this page's examples use
p5.quadrille
drawQuadrille createQuadrille cellLength mouseRow rand size magnitude
p5.js
createCanvas background text random int

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.