Difference between revisions of "love.graphics.translate"

m (add links to pop & push)
m
Line 21: Line 21:
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Translates the coordinate system in two dimensions.}}
 
{{#set:Description=Translates the coordinate system in two dimensions.}}
 +
== Other Languages ==
 +
{{i18n|love.graphics.translate}}

Revision as of 20:26, 18 November 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

number dx
The translation relative to the x-axis.
number dy
The translation relative to the y-axis.

Returns

Nothing.

See Also

Other Languages