{{newin (日本語)|[[0.8.0 (日本語)|0.8.0]]|080|type=関数}}
Draws a filled or unfilled arc at position <code>(x, y)</code>. The arc is drawn from <code>angle1</code> to <code>angle2</code> in [https://en.wikipedia.org/wiki/Radian radians]. The <code>segments</code> parameter determines how many segments are used to draw the arc. The more segments, the smoother the edge.

== 関数 ==
Draws an arc using the "pie" [[ArcType]].
=== 概要 ===
<source lang="lua">
love.graphics.arc( drawmode, x, y, radius, angle1, angle2, segments )
</source>
=== 引数 ===
{{param (日本語)|DrawMode|drawmode|How to draw the arc.}}
{{param (日本語)|number|x|The position of the center along x-axis.}}
{{param (日本語)|number|y|The position of the center along y-axis.}}
{{param (日本語)|number|radius|Radius of the arc.}}
{{param (日本語)|number|angle1|The angle at which the arc begins.}}
{{param (日本語)|number|angle2|The angle at which the arc terminates.}}
{{param (日本語)|number|segments (10)|The number of segments used for drawing the arc.}}
=== 返値 ===
ありません。


== 関数 ==
{{newin (日本語)|[[0.10.1 (日本語)|0.10.1]]|101|type=異形}}
=== 概要 ===
<source lang="lua">
love.graphics.arc( drawmode, arctype, x, y, radius, angle1, angle2, segments )
</source>
=== 引数 ===
{{param (日本語)|DrawMode|drawmode|How to draw the arc.}}
{{param (日本語)|ArcType|arctype|The type of arc to draw.}}
{{param (日本語)|number|x|The position of the center along x-axis.}}
{{param (日本語)|number|y|The position of the center along y-axis.}}
{{param (日本語)|number|radius|Radius of the arc.}}
{{param (日本語)|number|angle1|The angle at which the arc begins.}}
{{param (日本語)|number|angle2|The angle at which the arc terminates.}}
{{param (日本語)|number|segments (10)|The number of segments used for drawing the arc.}}
=== 返値 ===
ありません。

== 用例 ==
=== Drawing half a circle ===
<source lang="lua">
function love.draw( )
  love.graphics.arc( "fill", 400, 300, 100, 0, math.pi )
end
</source>
=== Drawing Pacman ===
<source lang="lua">
pacwidth = math.pi / 6 -- size of his mouth
function love.draw( )
  love.graphics.setColor( 1, 1, 0 ) -- pacman needs to be yellow
  love.graphics.arc( "fill", 400, 300, 100, pacwidth, (math.pi * 2) - pacwidth )
end
</source>
== 注釈 ==
The arc is drawn counter clockwise if the starting angle is numerically bigger than the final angle. The arc is drawn clockwise if the final angle is numerically bigger than the starting angle.
== 関連 ==
* [[parent::love.graphics (日本語)]]
[[Category:Functions (日本語)]]
[[Sub-Category::Drawing (日本語)| ]]
{{#set:Description=Draws an arc.}}
== そのほかの言語 ==
{{i18n (日本語)|love.graphics.arc}}