Difference between revisions of "love.graphics.translate"

(add another missing function, been reading the source again)
 
(added rotate & scale into see also, will do them later; also corrected Description)
Line 15: Line 15:
 
== See Also ==
 
== See Also ==
 
* [[parent::love.graphics]]
 
* [[parent::love.graphics]]
 +
* [[love.graphics.rotate]]
 +
* [[love.graphics.scale]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Draws a triangle.}}
+
{{#set:Description=Translates the coordinate system in two dimensions.}}

Revision as of 17:03, 22 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

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

Returns

Nothing.

See Also