The scale() function scales the current coordinate system by the specified factor.
The push() and pop() functions save and restore the coordinate system, respectively.
In this example, a square size 200 is drawn at the origin, with three different scaling factors.
No alt text
Translate
Move the coordinate system origin.
Rotate
Rotate the coordinate system.
Scale
Modify the coordinate system scale.
Looking for the old p5.js site? Find it here!