mojo.graphics.Canvas.Translate - nitrologic/monkey2 GitHub Wiki

mojo::mojo.graphics.mojo.graphics.Canvas.Translate

Method Translate:Void( tx:monkey:monkey.types.Float,ty:monkey:monkey.types.Float )
Method Translate:Void( tv:std: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.