---
title: "flareStreak"
description: "The horizontal widescreen streak through the light in a lens flare."
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#L736"
---

# flareStreak

The horizontal widescreen streak through the light in a lens flare.

```ts
flareStreak(slots: {intensity: ArgSpec; length: ArgSpec}): (flare: Expr, params: GpuFragmentParams) => Expr
```

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

Call the result with the flare frame and the params. `length` is the streak's reach in uv. Blue spreads furthest, giving the streak its cyan edges. Returns an RGB.

## Parameters

| Name | Type | Notes |
|---|---|---|
| `slots` | `{intensity: ArgSpec; length: ArgSpec}` |  |

## Example

```ts
flareStreak({intensity: p('streakIntensity'), length: p('streakLength')})(flare, params)
```

## See also

- [`flareFrame`](/docs/primitives/light/flareframe) — The shared frame of a camera lens flare, which every `flare*` part reads.
- [`streakBand`](/docs/primitives/light/streakband) — One soft band across a single coordinate, peaking at `center`.

## Used by

[LensFlare](/docs/components/lensflare)