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 Java method: PGraphics.resetMatrix

Syntax

reset_matrix() -> None

Updated on September 11, 2021 16:51:34pm UTC