{{newin (日本語)|[[0.9.0 (日本語)|0.9.0]]|090|type=関数}}
Resets the current coordinate transformation.

This function is always used to reverse any previous calls to [[love.graphics.rotate]], [[love.graphics.scale]], [[love.graphics.shear]] or [[love.graphics.translate]]. It returns the current transformation state to its defaults.

== 関数 ==
=== 概要 ===
<source lang="lua">
love.graphics.origin()
</source>
=== 引数 ===
なし。
=== 返値 ===
ありません。

==  用例 ==
<source lang="lua">
local image = love.graphics.newImage("path_to_your_image")
function love.draw()
   love.graphics.push()   -- stores the coordinate system
     love.graphics.scale(0.5, 0.5)   -- reduce everything by 50% in both X and Y coordinates
     love.graphics.draw(image, 0, 0)  -- you can see a scaled image that you loaded on the left top of the screen.
     love.graphics.print("Scaled text", 50, 50)   -- print half-sized text at 25x25
     love.graphics.draw(image, 0, 0)  
       love.graphics.push()
       love.graphics.origin()  -- Rest the state to the defaults.
       love.graphics.draw(image, 0, 0) -- Draw the image on screen as if nothing was scaled.
     love.graphics.pop()   -- return to our scaled coordinate state.
     love.graphics.print("Scaled text", 100, 100)   -- print half-sized text at 50x50
   love.graphics.pop()   -- return to the previous stored coordinated
   love.graphics.print("Normal text", 50, 50)
end
</source>

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