Examples Scale

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: Christopher Coleman, Animesh Sinha, Katie, Caleb Foss, Darren Kessner

Modified from Scale.

Originally ported from the Processing example Scale.

Scale is licensed under CC BY-NC-SA 4.0.