Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 926 Bytes

File metadata and controls

22 lines (18 loc) · 926 Bytes
featuredImage title oneLineDescription
../../../images/featured/05_Transformation-00_Translate-thumbnail.png
Translate
Move the coordinate system origin.

The translate() function moves the origin of the coordinate system to the specified location.

The push() and pop() functions save and restore the coordinate system and various other drawing settings, such as the fill color.

Note that in this example, we draw the shapes (rectangle and circle) each time in a different coordinate system.

Contributors: Christopher Coleman, Caleb Foss, Darren Kessner