Loading

PtextSize


processing
Since v1.0.0
Available on all platforms
See also

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

Signature

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