Loading

Pclear

processing

Clears the pixels. This function clears everything in a PGraphics object to make all of the pixels 100% transparent.

Link to original Processing doc

Pclear is available since version 1.0.0.

Signatures

Examples

// @preview image 200 200 '2D2' PGraphics 255 Pbackground 0xff0000ff Pstroke //blue 0x2fff0000 Pfill //red transparent 80 20 50 70 Prect 30 120 50 50 10 Prect Pclear //remove all, including background. 130 120 50 50 0 6 20 8 Prect Pencode