Static p5_sys::global::resetMatrix [−][src]
pub static resetMatrix: ResetMatrixInternalType
Expand description
Replaces the current matrix with the identity matrix.
Examples
translate(50, 50); applyMatrix(0.5, 0.5, -0.5, 0.5, 0, 0); rect(0, 0, 20, 20); // Note that the translate is also reset. resetMatrix(); rect(0, 0, 20, 20);