Loading

PtextSize

processing

Sets the current font size. This size will be used in all subsequent calls to the Ptext function. Font size is measured in units of pixels.

Link to original Processing doc

PtextSize is available since version 1.0.0.

See also

Signatures

Examples

// @preview image //print random size text 500 200 '2D2' PGraphics 255 Pbackground 0 Pfill 'CENTER' PtextAlign RAND 40 * 10 + PtextSize 'Does' 100 100 Ptext RAND 40 * 10 + PtextSize 'Size' 250 100 Ptext RAND 40 * 10 + PtextSize 'Matter ?' 400 100 Ptext Pencode