# love.graphics.arc

 Available since LÖVE 0.8.0 This function is not supported in earlier versions.

Draws a filled or unfilled arc at position `(x, y)`. The arc is drawn from `angle1` to `angle2` in radians. The `segments` parameter determines how many segments are used to draw the arc. The more segments, the smoother the edge.

## Function

Draws an arc using the "pie" ArcMode.

### Synopsis

`love.graphics.arc( drawmode, x, y, radius, angle1, angle2, segments )`

### Arguments

`DrawMode drawmode`
How to draw the arc.
`number x`
The position of the center along x-axis.
`number y`
The position of the center along y-axis.
`number radius`
`number angle1`
The angle at which the arc begins.
`number angle2`
The angle at which the arc terminates.
`number segments (10)`
The number of segments used for drawing the arc.

Nothing.

## Function

 Available since LÖVE 0.10.1 This variant is not supported in earlier versions.

### Synopsis

`love.graphics.arc( drawmode, arcmode, x, y, radius, angle1, angle2, segments )`

### Arguments

`DrawMode drawmode`
How to draw the arc.
`ArcMode arcmode`
The type of arc to draw.
`number x`
The position of the center along x-axis.
`number y`
The position of the center along y-axis.
`number radius`
`number angle1`
The angle at which the arc begins.
`number angle2`
The angle at which the arc terminates.
`number segments (10)`
The number of segments used for drawing the arc.

Nothing.

## Examples

### Drawing half a circle

```function love.draw( )
love.graphics.arc( "fill", 400, 300, 100, 0, math.pi )
end```

### Drawing Pacman

```pacwidth = math.pi / 6 -- size of his mouth
function love.draw( )
love.graphics.setColor( 255, 255, 0 ) -- pacman needs to be yellow
love.graphics.arc( "fill", 400, 300, 100, pacwidth, (math.pi * 2) - pacwidth )
end```

## Notes

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.