Difference between revisions of "love.graphics.translate"
(added rotate & scale into see also, will do them later; also corrected Description) |
m (add links to pop & push) |
||
Line 15: | Line 15: | ||
== See Also == | == See Also == | ||
* [[parent::love.graphics]] | * [[parent::love.graphics]] | ||
+ | * [[love.graphics.pop]] | ||
+ | * [[love.graphics.push]] | ||
* [[love.graphics.rotate]] | * [[love.graphics.rotate]] | ||
* [[love.graphics.scale]] | * [[love.graphics.scale]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
{{#set:Description=Translates the coordinate system in two dimensions.}} | {{#set:Description=Translates the coordinate system in two dimensions.}} |
Revision as of 12:13, 26 February 2010
Translates the coordinate system in two dimensions.
When this function is called with two numbers, dx, and dy, all the following drawing operations take effect as if their x and y coordinates were x+dx and y+dy. This change lasts until love.draw() exits.
Function
Synopsis
love.graphics.translate( dx, dy )
Arguments
Returns
Nothing.