Pardon the mess, Play My Code is in beta!

READY TO PLAY?
CLICK TO LOG IN!

sign up - lost password

Transformations

Transformations allow you to alter where items will get drawn to the screen. These allow you to rotate, translate or scale items when they are drawn.

All transformations applied to the screen are automatically cleared from the screen on each frame.

Transformations are also available on Images, however they do not clear between frames. See the Image class for more details.

rotate

scale

translate

transform

setTransform

undoTransform

clearTransforms