The shearY() function in p5.js is used to shear a shape or object around the y-axis. The object is sheared by the amount specified by the angle parameter. For proper functioning of angles should be specified in the current angleMode. The objects are always sheared around their relative position to the origin and in a clockwise direction.
Parameters: This function accepts single parameter angle which stores the value of angle.
Below programs illustrate the shearY() function in p5.js:
Example 1: This example uses shearY() function to shear the object around y-axis.
Example 2: This example uses shearY() function to shear the object around y-axis.
- p5.js | Typography | shearX() Function
- Typography in Bootstrap
- Bootstrap 4 | Typography
- How to get the function name inside a function in PHP ?
- PHP | min( ) Function
- PHP | max( ) Function
- p5.js | box() Function
- p5.js | value() Function
- PHP | Ds\Set first() Function
- p5.js | red() function
- D3.js | d3.map.has() Function
- p5.js | second() function
- D3.js | d3.min() function
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.