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)
Note
transpose()is useful for performing column transformations using row commands. For instance,q.transpose().row(col).transpose()clones columncol.
Syntax
transpose()
What this page's examples use
- p5.quadrille
drawQuadrillecreateQuadrillecellLengthrandtranspose- p5.js
createCanvasbackground
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.