---
title: "gainTone"
description: "Contrast as a multiplier and balance as a shift over a 0–1 field, not flipped."
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#L715"
---

# gainTone

Contrast as a multiplier and balance as a shift over a 0–1 field, not flipped.

```ts
gainTone(field: Field, slots: {contrast: PropRef; balance: PropRef}): Field
```

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

`contrast` 1 leaves the field alone (a slider from 0.25 to 4 works well) and `balance` shifts it. Low field values read the first color. The tone inside `worleyNoise`. Reach for it when a "1 = normal" contrast slider fits better than `noiseTone`'s "0 = normal".

## Parameters

| Name | Type | Notes |
|---|---|---|
| `field` | `Field` |  |
| `slots` | `{contrast: PropRef; balance: PropRef}` |  |

## Example

```ts
paint: rampOver(gainTone(cellFill(cellDistances({scale: p('scale'), seed: p('seed')}), {edgeIntensity: p('edgeIntensity')}), {contrast: p('contrast'), balance: p('balance')}), stops(p('colorSpace')))
```

## 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.
- [`worleyNoise`](/docs/primitives/noise/worleynoise) — A complete cellular-noise paint: distances to drifting cell points, read through the color ramp.