Get the current matrix as a numpy array.


Get the current matrix as a numpy array. Use the target parameter to put the matrix data in a properly sized and typed numpy array.

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

Underlying Processing method: PGraphics.getMatrix


get_matrix() -> npt.NDArray[np.floating]

    target: npt.NDArray[np.floating],  # transformation matrix with a shape of 2x3 for 2D transforms or 4x4 for 3D transforms
) -> npt.NDArray[np.floating]

Updated on September 01, 2022 14:08:27pm UTC