Open In App
Related Articles

p5.js Transform Complete Reference

Improve
Improve
Improve
Like Article
Like
Save Article
Save
Report issue
Report

The p5.js Transform Function is used to transform a shape or the object to a specified axis over a specified angle. All the transform functions are mentioned below.

Function

Description

rotate()It rotates a shape or the object using p5.js to a specified axis over a specified angle.
rotateX()It rotates the shape or an object around the x-axis.
rotateY()It rotates the shape or an object around the y-axis.
rotateZ()It rotates the shape or an object around the z-axis.
scale()It is used to increase or decrease the size of a shape.
shearX()It is used to shear a shape or object around the x-axis.
shearY()It is used to shear a shape or object around the y-axis.
translate()It specifies the amount to displace objects within the display window.

Last Updated : 17 Aug, 2023
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads