---
title: "streakBand"
description: "One soft band across a single coordinate, peaking at `center`."
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#L570"
---

# streakBand

One soft band across a single coordinate, peaking at `center`.

```ts
streakBand(u: Expr, center: Expr, width: Expr): Expr
```

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

Returns a 0–1 field, 1 at `center`, fading over `width` on each side. `u`, `center` and `width` share a unit. Multiply or add several for a stack of parallel bands.

## Parameters

| Name | Type | Notes |
|---|---|---|
| `u` | `Expr` |  |
| `center` | `Expr` |  |
| `width` | `Expr` |  |

## Example

```ts
const bar = streakBand(params.ctx.uv.member('y'), 0.5, p('width'))
```

## See also

- [`rayBands`](/docs/primitives/light/raybands) — Bright bands that travel along a coordinate, for aurora curtains or shimmering rays.
- [`beamStreaks`](/docs/primitives/light/beamstreaks) — Two bright bands crossing a beam further along it, slowly drifting, like light bouncing inside a film camera.