---
title: "scratchStreaks"
description: "Fine hairline scratches, like a scuffed surface, flickering on the layer's clock."
group: "light"
groupTitle: "Noise, light & materials"
categoryId: "noise"
categorySlug: "noise"
categoryTitle: "Noise"
kind: "function"
sourceUrl: "https://github.com/shader-effects-inc/shaders/blob/main/packages/core/src/std/paint/noise.ts#L625"
---

# scratchStreaks

Fine hairline scratches, like a scuffed surface, flickering on the layer's clock.

```ts
scratchStreaks(slots: {thickness: PropRef}): Field
```

Import `noise` from `shaders/std` and use `noise.scratchStreaks`.

`thickness` widens the bright core of each streak (0.2 to 5, default 1). The value is 0 off a streak and rises well past 1 on one, so send it through `noiseTone`, which clamps. Takes a 2D position. Works in a `paint:` only, not in a compute pass.

## Parameters

| Name | Type | Notes |
|---|---|---|
| `slots` | `{thickness: PropRef}` |  |

## Example

```ts
paint: rampOver(noiseTone(seededPlane(scratchStreaks({thickness: p('thickness')}), {scale: p('scale'), seed: p('seed')})), linearPair(p('colorA'), p('colorB')))
```

## See also

- [`noiseTone`](/docs/primitives/noise/noisetone) — The standard contrast and balance controls of a noise texture, turning a 0–1 field into the ramp position.
- [`linearPair`](/docs/primitives/noise/linearpair) — A two-color palette mixed in linear RGB, for a definition with no color-space prop.

## Used by

[Scratches](/docs/components/scratches)