Loading

PresetMatrix


processing
Since v1.0.0
Available on all platforms
See also

Replaces the current matrix with the identity matrix.

Link to original Processing doc

Signature

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