Inserts a translation command into this Graphics objects command buffer.
All objects drawn after calling this method will be translated by the given amount.
This does not change the position of the Graphics object itself, only of the objects drawn by it after calling this method.
name | type | description |
---|---|---|
x | number |
The horizontal translation to apply. |
y | number |
The vertical translation to apply. |
This Game Object.