rotate()

π/2 clockwise rotation of the quadrille cells; on a non-square quadrille, width and height swap. Returns the quadrille (chainable).

Example

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

edit, then run

Syntax

rotate()

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