Pushes the current transformation matrix onto the matrix stack.
Pushes the current transformation matrix onto the matrix stack. Understanding
push_matrix() and Py5Graphics.pop_matrix() requires understanding the concept of a matrix stack. The
push_matrix() function saves the current coordinate system to the stack and Py5Graphics.pop_matrix() restores the prior coordinate system.
push_matrix() and Py5Graphics.pop_matrix() are used in conjuction with the other transformation functions and may be embedded to control the scope of the transformations.
Underlying Java method: PGraphics.pushMatrix
push_matrix() -> None
Updated on September 11, 2021 16:51:34pm UTC