Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 948 Bytes

File metadata and controls

25 lines (21 loc) · 948 Bytes
featuredImage title oneLineDescription
../../../images/featured/05_Transformation-02_Scale-thumbnail.png
Scale
Modify the coordinate system scale.

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.

Contributors from the p5 community wrote this example. Soon their names will appear here. In the meantime, you can <a href="https://github.com/processing/p5.js-website/blame/d6b28924185dac5e25c39cd0fc2fc4a1f6392883/src/content/examples/en/05_Transformation/02_Scale/code.js" target="_blank"

see their contributions in the source code.