x & y

The x and y parameters define the upper-left corner where the quadrille is drawn, in pixels.

Example

(move the mouse to position q)

edit, then run

Syntax

drawQuadrille(quadrille, { x, y })

Parameters

Param Description
x Number: The x-coordinate of the upper-left corner in pixels
y Number: The y-coordinate of the upper-left corner in pixels
What this page's examples use
p5.quadrille
drawQuadrille createQuadrille cellLength
p5.js
createCanvas background color

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.