Py5Graphics.reset_matrix()

Py5Graphics.reset_matrix()

Replaces the current matrix with the identity matrix.

Description

Replaces the current matrix with the identity matrix. The equivalent function in OpenGL is gl_load_identity().

This method is the same as reset_matrix() but linked to a Py5Graphics object. To see example code for how it can be used, see reset_matrix().

Underlying Processing method: PGraphics.resetMatrix

Syntax

reset_matrix() -> None

Updated on November 12, 2021 11:30:58am UTC