---
title: "dist.radial"
description: "A round or elliptical gradient spreading out from a center."
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#L284"
---

# dist.radial

A round or elliptical gradient spreading out from a center.

```ts
dist.radial(slots: {center: PropRef; radius: FieldScalar; aspect: FieldScalar; skew: FieldScalar}): Field
```

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

0 at `center`, 1 at `radius` (a fraction of the canvas height). `aspect` 1 is a circle, larger values squeeze it horizontally. `skew` in degrees tilts the ellipse.

## Parameters

| Name | Type | Notes |
|---|---|---|
| `slots` | `{center: PropRef; radius: FieldScalar; aspect: FieldScalar; skew: FieldScalar}` |  |

## Example

```ts
paint: rampOver(rings(dist.radial({center: p('center'), radius: p('radius'), aspect: p('aspect'), skew: p('skewAngle')}), p('repeat')), stops(p('colorSpace')))
```

## See also

- [`rings`](/docs/primitives/paint/rings) — Repeats a field as concentric bands.

## Used by

[RadialGradient](/docs/components/radialgradient)