---
title: "flareHalo"
description: "The rainbow halo ring of a lens flare, drawn across the canvas from the light."
group: "light"
groupTitle: "Noise, light & materials"
categoryId: "light"
categorySlug: "light"
categoryTitle: "Light"
kind: "function"
sourceUrl: "https://github.com/shader-effects-inc/shaders/blob/main/packages/core/src/std/paint/light.ts#L690"
---

# flareHalo

The rainbow halo ring of a lens flare, drawn across the canvas from the light.

```ts
flareHalo(slots: {intensity: ArgSpec; radius: ArgSpec; chroma: ArgSpec; softness: ArgSpec}): (flare: Expr, params: GpuFragmentParams) => Expr
```

Import `light` from `shaders/std` and use `light.flareHalo`.

Call the result with the flare frame and the params. The ring centers on the point opposite the light through the canvas center. `radius` is in aspect-corrected uv, `chroma` (0–1) splits it into colors and `softness` widens it. Returns an RGB.

## Parameters

| Name | Type | Notes |
|---|---|---|
| `slots` | `{intensity: ArgSpec; radius: ArgSpec; chroma: ArgSpec; softness: ArgSpec}` |  |

## Example

```ts
flareHalo({intensity: p('haloIntensity'), radius: p('haloRadius'), chroma: p('haloChroma'), softness: p('haloSoftness')})(flare, params)
```

## See also

- [`flareFrame`](/docs/primitives/light/flareframe) — The shared frame of a camera lens flare, which every `flare*` part reads.
- [`ringBand`](/docs/primitives/light/ringband) — Three thin colored rings around the center, the rainbow edge of a lens or a halo.
- [`lensGhost`](/docs/primitives/light/lensghost) — One ghost disc of a lens flare, the faint circles that line up across from the light.

## Used by

[LensFlare](/docs/components/lensflare)