---
title: "arc"
description: "A pie wedge: a filled sector of a circle."
group: "space"
groupTitle: "Shapes, frames & warps"
categoryId: "shape"
categorySlug: "shape"
categoryTitle: "Shapes"
kind: "function"
sourceUrl: "https://github.com/shader-effects-inc/shaders/blob/main/packages/core/src/std/shape.ts#L243"
---

# arc

A pie wedge: a filled sector of a circle.

```ts
arc(x: Val, y: Val, radius: Val, halfAngle: Val): Expr
```

Import `shape` from `shaders/std` and use `shape.arc`.

`radius` is the sector's radius, in uv. `halfAngle` is half the opening angle, in radians. Multiply an aperture prop in degrees by `APERTURE_TO_HALF_ANGLE` to get it. The wedge opens downward at rotation 0.

## Parameters

| Name | Type | Notes |
|---|---|---|
| `x` | `Val` |  |
| `y` | `Val` |  |
| `radius` | `Val` |  |
| `halfAngle` | `Val` |  |

## Example

```ts
shape: {distance: ({x, y}, u) => arc(x, y, u('radius'), math.mul(u('aperture'), APERTURE_TO_HALF_ANGLE)), …}
```

## See also

- [`ring`](/docs/primitives/shape/ring) — A ring: a circular band around a centre.
- [`circle`](/docs/primitives/shape/circle) — A circle of a given radius.
- [`APERTURE_TO_HALF_ANGLE`](/docs/primitives/shape/aperture-to-half-angle) — The factor that turns an opening angle in degrees into the half-angle `arc` takes.

## Used by

[Arc](/docs/components/arc)