Loading

PresetMatrix

processing

Replaces the current matrix with the identity matrix.

Link to original Processing doc

PresetMatrix is available since version 1.0.0.

See also

Signatures

Examples

// @preview image 100 100 '2D3' PGraphics 200 Pbackground //light gray 255 Pfill 0 0 50 50 Prect //white rectangle 30 20 Ptranslate 0 Pfill 0 0 50 50 Prect //black rectangle PresetMatrix //back to "no transformation" 100 Pfill 15 10 50 50 Prect //gray rectangle Pencode