reflect()

Reflects the quadrille across its horizontal axis — top and bottom rows swap (a vertical flip). Returns the quadrille (chainable).

Example

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

edit, then run

Syntax

reflect()

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