---
title: "linearPair"
description: "A two-color palette mixed in linear RGB, for a definition with no color-space prop."
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#L736"
---

# linearPair

A two-color palette mixed in linear RGB, for a definition with no color-space prop.

```ts
linearPair(a: PropRef, b: PropRef): Palette
```

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

Reads two color props. Use `pair` or `stops` from paint when the definition has a `colorSpace` prop.

## Parameters

| Name | Type | Notes |
|---|---|---|
| `a` | `PropRef` |  |
| `b` | `PropRef` |  |

## Example

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

## See also

- [`pair`](/docs/primitives/paint/pair) — A palette of two color props, mixed in the color space named by the `space` prop.
- [`stops`](/docs/primitives/paint/stops) — The standard multi-stop palette, read from the `stops`, `colorA` and `colorB` props.

## Used by

[Scratches](/docs/components/scratches)