{{oldin|[[0.9.0]]|090|type=function|text=This function is not supported in that and later versions. Use [[love.graphics.polygon]] instead}}
Draws a quadrilateral shape.
== 関数 ==
=== 概要 ===
<source lang="lua">
love.graphics.quad( mode, x1, y1, x2, y2, x3, y3, x4, y4 )
</source>
=== 引数 ===
{{param (日本語)|DrawMode|mode|How to draw the quad.}}
{{param (日本語)|number|x1|The position of the top left corner along x-axis.}}
{{param (日本語)|number|y1|The position of the top left corner along y-axis.}}
{{param (日本語)|number|x2|The position of the top right corner along x-axis.}}
{{param (日本語)|number|y2|The position of the top right corner along y-axis.}}
{{param (日本語)|number|x3|The position of the bottom right corner along x-axis.}}
{{param (日本語)|number|y3|The position of the bottom right corner along y-axis.}}
{{param (日本語)|number|x4|The position of the bottom left corner along x-axis.}}
{{param (日本語)|number|y4|The position of the bottom left corner along y-axis.}}
=== 返値 ===
ありません。
== 用例 ==
=== A quadrilateral that has its top left corner located at 0,0 and whose width and height are 100 pixels. ===
<source lang="lua">
function love.draw()
	love.graphics.quad("fill", 0, 0, 100, 0, 100, 100, 0, 100)
end
</source>
== 関連 ==
* [[parent::love.graphics (日本語)]]
[[Category:Functions (日本語)]]
[[Sub-Category::Drawing (日本語)| ]]
{{#set:Description=Draws a quadrilateral shape.}}
{{#set:Since=000}}
== そのほかの言語 ==
{{i18n (日本語)|love.graphics.quad}}