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 or else a [[love.graphics.pop]] reverts to a previous [[love.graphics.push]].

Translating using whole numbers will prevent tearing/blurring of images and fonts draw after translating.

== 関数 ==
=== 概要 ===
<source lang="lua">
love.graphics.translate( dx, dy )
</source>
=== 引数 ===
{{param (日本語)|number|dx|The translation relative to the x-axis.}}
{{param (日本語)|number|dy|The translation relative to the y-axis.}}

=== 返値 ===
ありません。

== 用例 ==
Translate down and to the right by 10 pixels. Remember, the translation is reset at the end of each [[love.draw]].
<source lang="lua">
function love.draw()
   love.graphics.translate(10, 10)
   love.graphics.print("Text", 5, 5)   -- will effectively render at 15x15
end
</source>

== 関連 ==
* [[parent::love.graphics (日本語)]]
* [[love.graphics.pop (日本語)]]
* [[love.graphics.push (日本語)]]
* [[love.graphics.rotate (日本語)]]
* [[love.graphics.scale (日本語)]]
* [[love.graphics.shear (日本語)]]
* [[love.graphics.origin (日本語)]]
[[Category:Functions (日本語)]]
{{#set:Description=Translates the coordinate system in two dimensions.}}
{{#set:Since=000}}
{{#set:Sub-Category=Coordinate System (日本語)}}
== そのほかの言語 ==
{{i18n (日本語)|love.graphics.translate}}