textFont
Defines the default font used for drawing the text in quadrille cells. The default is the current font set in p5.js.
Example
Note
q1is drawn using the Noto Serif font loaded in the asyncsetup()function.q2uses the default font set by p5.js for rendering text in quadrille cells.
Syntax
drawQuadrille(quadrille, { textFont })
Parameters
| Param | Description |
|---|---|
textFont |
p5.Font: Specifies the font used for rendering text in cells. Default is the current p5.js font |
What this page's examples use
- p5.quadrille
drawQuadrillecreateQuadrillecellLengthclonetextZoom- p5.js
createCanvasbackgroundloadFont
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.