Reference createMatrix()

createMatrix()

Creates a new p5.Matrix object.

A matrix is a mathematical concept that is useful in many fields, including computer graphics. In p5.js, matrices are used to perform transformations on shapes and images.

Examples

Syntax

createMatrix()

Parameters

Returns

p5.Matrix: new p5.Matrix object.
Notice any errors or typos? Please let us know. Please feel free to edit src/math/math.js and open a pull request!

Related References