---
title: "dist.conic"
description: "A sweep around a center, like a clock hand: 0 to 1 once around."
group: "paint"
groupTitle: "Painting"
categoryId: "paint"
categorySlug: "paint"
categoryTitle: "Fields, palettes & ramps"
kind: "function"
sourceUrl: "https://github.com/shader-effects-inc/shaders/blob/main/packages/core/src/std/paint/fields.ts#L305"
---

# dist.conic

A sweep around a center, like a clock hand: 0 to 1 once around.

```ts
dist.conic(slots: {center: PropRef; rotation: FieldScalar}): Field
```

Import `paint` from `shaders/std` and use `paint.dist.conic`.

The sweep starts at the left of the center and runs counter-clockwise. `rotation` in degrees moves the start. Wrap it in `tiles` to repeat the sweep.

## Parameters

| Name | Type | Notes |
|---|---|---|
| `slots` | `{center: PropRef; rotation: FieldScalar}` |  |

## Example

```ts
paint: rampOver(tiles(dist.conic({center: p('center'), rotation: p('rotation')}), p('repeat')), stops(p('colorSpace')))
```

## See also

- [`tiles`](/docs/primitives/paint/tiles) — Repeats a field `count` times, always wrapping.

## Used by

[ConicGradient](/docs/components/conicgradient)