---
title: "beamStreaks"
description: "Two bright bands crossing a beam further along it, slowly drifting, like light bouncing inside a film camera."
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#L475"
---

# beamStreaks

Two bright bands crossing a beam further along it, slowly drifting, like light bouncing inside a film camera.

```ts
beamStreaks(slots: {spread: ArgSpec; strength: ArgSpec}): (frame: Expr, drift: Expr, params: GpuFragmentParams) => Expr
```

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

Call the result with a `beamFrame` value, a `slowDrift` value and the params. It returns a field scaled by `strength` (0 turns the bands off). `spread` is the same value you gave `beamBloom`, so the bands sit past the pool.

## Parameters

| Name | Type | Notes |
|---|---|---|
| `slots` | `{spread: ArgSpec; strength: ArgSpec}` |  |

## Example

```ts
const streaks = beamStreaks({spread: p('spread'), strength: p('streaks')})(frame, drift, params)
```

## See also

- [`beamBloom`](/docs/primitives/light/beambloom) — The soft pool of light at the start of a beam, with a wider faint shoulder around it.
- [`slowDrift`](/docs/primitives/light/slowdrift) — The slow breathing and drifting signals that keep a light leak alive.
- [`streakBand`](/docs/primitives/light/streakband) — One soft band across a single coordinate, peaking at `center`.

## Used by

[LightLeak](/docs/components/lightleak)