{{newin (日本語)|[[0.8.0 (日本語)|0.8.0]]|080|type=関数}}
Shears the coordinate system.

{{notice|In version 0.9.2, a bug caused this function to reset all transformations. It was fixed in [[0.10.0]]. A workaround for 0.9.2 would be to use a combination of rotating and scaling to imitate shearing.}}
== 関数 ==
=== 概要 ===
<source lang="lua">
love.graphics.shear( kx, ky )
</source>
=== 引数 ===
{{param (日本語)|number|kx|The shear factor on the x-axis.}}
{{param (日本語)|number|ky|The shear factor on the y-axis.}}
=== 返値 ===
ありません。
== 用例 ==
=== Squish a rectangle ===
<source lang="lua">
function love.draw()
	love.graphics.translate(100, 100)
	local t = love.timer.getTime()
	love.graphics.shear(math.cos(t), math.cos(t * 1.3))
	love.graphics.rectangle('fill', 0, 0, 100, 50)
end
</source>

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