textFont

Defines the default font used for drawing the text in quadrille cells. The default is the current font set in p5.js.

Example

edit, then run

Note

  • q1 is drawn using the Noto Serif font loaded in the async setup() function.
  • q2 uses 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
drawQuadrille createQuadrille cellLength clone textZoom
p5.js
createCanvas background loadFont

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.