Skip to content

Mojo graphics canvas translate

mojo:mojo.graphics.Canvas.Translate

Method Translate:Void( tx:Float,ty:Float )#
Method Translate:Void( tv:std.geom.Vec2f )#

Translates the drawing matrix.

Translates the drawing matrix. This has the effect of translating all drawing coordinates by tx and ty.

Parameters
tx tx X translation.
ty ty Y translation.
tv tv X/Y translation.