Reference mat2x2()

mat2x2()

This API is experimental

Its behavior may change in a future version of p5.js.

A GLSL-style name for mat2().

Note: mat2x2() can only be used inside a p5.strands shader callback.

Examples

Syntax

mat2x2(values1, values2, ..., valuesn)

Parameters

values1, ..., valuesn
Number: the same values accepted by mat2().

Returns

a 2x2 matrix.

Related References