Difference between revisions of "love.graphics.translate"
m |
(Like on the scale page, important to know.) |
||
Line 1: | Line 1: | ||
Translates the coordinate system in two dimensions. | 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. | + | 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. |
+ | |||
+ | Scale and translate are not commutative operations, therefore, calling them in different orders will change the outcome. | ||
+ | |||
+ | This change lasts until love.draw() exits. | ||
== Function == | == Function == | ||
=== Synopsis === | === Synopsis === |
Revision as of 22:25, 8 March 2011
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.
Scale and translate are not commutative operations, therefore, calling them in different orders will change the outcome.
This change lasts until love.draw() exits.
Function
Synopsis
love.graphics.translate( dx, dy )
Arguments
Returns
Nothing.
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info