transpose()

Transposes the quadrille cells — rows become columns and vice versa, so dimensions swap on non-square quadrilles. Returns the quadrille (chainable).

Example

(mouse click or press any key to transpose the quadrille)

edit, then run

Note

transpose() is useful for performing column transformations using row commands. For instance, q.transpose().row(col).transpose() clones column col.

Syntax

transpose()

What this page's examples use
p5.quadrille
drawQuadrille createQuadrille cellLength rand transpose
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.