# toneFits

Canonical: https://docs.shumoku.dev/en/library/api/toneFits
Language: en

@shumoku/core · 0.5.0 · function

# toneFits

[Source](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/libs/@shumoku/core/src/themes/tone.ts#L67)

Whether every hue of a lightness and chroma is shown by a screen and seen against every background, checked every few degrees.

```
toneFits(lightness: number, chroma: number, backgrounds: readonly string[]): boolean
```

## Parameters

| Parameter | Type | Description | Default |
| --- | --- | --- | --- |
| `lightness` | `number` | No additional description. | `—` |
| `chroma` | `number` | No additional description. | `—` |
| `backgrounds` | `readonly string[]` | No additional description. | `—` |

## Returns

```
boolean
```

[`libs/@shumoku/core/src/libs/@shumoku/core/src/themes/tone.ts:67`](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/libs/@shumoku/core/src/themes/tone.ts#L67)
