# Match sprite tone to the scene

> Change the color and brightness of sprites to match a night or evening background

If you put a sprite drawn in daylight over a night background as it is, the character alone looks bright and out of place. Changing the tone lets you match the color and brightness of the sprite to the background.

The examples on this page use the English sample story, "Waiting for Stars" (choose "A sample story" and English in New Project, or run `lim new --lang en`; the characters are Akari and Sou).

![Before changing the tone. On the night background, only the sprite is bright.](/shots/en/h-chara-tone-before.webp)

## Change the tone

1. Type "tone" in the search box at the top of the parts panel.
2. Select the line that changes the background to night, and double-click "Tone" in the results.
3. Click `tone` in the panel on the right to list the tone names, and choose "night" (you can also type it).
4. To change it gradually, enter a time (in milliseconds) in `time`.

![The Tone part. Set tone and time.](/shots/en/h-chara-tone-part.webp)

![Set to night. The sprite turns darker and bluer and blends with the night background.](/shots/en/h-chara-tone-after.webp)

Only sprites change tone; the background doesn't. If you don't set `who`, the tone applies to every sprite on screen and to sprites shown later. If you choose a character in `who`, only that character changes.

You can enter these names in `tone`.

| tone | How it looks |
|---|---|
| night | Night (bluer and a little darker) |
| evening | Evening (orange) |
| dark | Darker |
| sepia | Sepia (for flashbacks and so on) |
| mono | Black and white |
| none | Back to normal |

To go back to normal, set `tone` to "none" with the same part. Setting none without `who` also removes the tones you set for individual characters.

## Make your own tone

1. Open "Game settings" at the top, and click "Add tone" under "Sprite tones."
2. Enter a name for the tone in "Name" (here, `rain`), and enter values in whichever of "Color," "Strength (0–1)," "Saturation," "Brightness" and "Contrast" you want to change.

![Sprite tones in the game settings, with one tone added and its color, saturation and brightness entered.](/shots/en/h-chara-tone-custom.webp)

"Color" is the color laid over the sprite, and "Strength" is how much of that color is applied (0 to 1). For saturation, brightness and contrast, 1 means unchanged. You can use the name you chose by entering it in `tone` (`@tone rain` in the example). If you use a built-in name such as night, your tone replaces the built-in one.

It's saved in `liminalia.json` like this.

```json
"tones": {
  "rain": { "color": "#a0b0c8", "saturation": 0.8, "brightness": 0.9 }
}
```

## Set a tone for each background

If you pair backgrounds with tones, such as always night for the night background, the tone is applied to sprites while that background is shown, without placing the "Tone" part.

1. Open "Game settings" at the top, and click "Add background tone" under "Tones by background" in "Sprite tones."
2. Choose the background (here, `hill_night.webp`) in "Background," and enter the tone's name (`night`) in "Tone."

When the "Background" part changes the background, the sprites' tone changes over the same time as the background (`time`). It changes the same way with "Scene change." Changing to a background without a tone removes the tone.

To use a different tone just this once, enter the tone's name in `tone` of the "Background" part ("Scene change" has `tone` too). It's applied instead of the paired tone only while that background is shown. Setting `tone` to "none" applies no tone at that point.

A tone set with the "Tone" part comes before the background's tone.

- Setting `tone` to "none" with the "Tone" part goes back to the background's tone.
- To show sprites in their original colors without the background's tone either, set `tone` to "plain." To do this for one character only, choose them in `who` (`@tone plain who=Sou`).

It's saved in `liminalia.json` like this.

```json
"backgroundTones": {
  "hill_night.webp": "night",
  "hill_dusk.webp": "evening"
}
```

With this setting, in the script below, evening is applied to the two sprites on the hill at dusk, and night from the point where it changes to the hill at night.

```
@bg hill_dusk.webp
@chara Akari normal at=left
@chara Sou normal at=right
Akari "The sun's about to set."
@bg hill_night.webp time=1s
Sou "At night, this place turns into a ceiling of stars."
```

## In code

```
@bg hill_night.webp time=1s
@tone night time=1s
Akari "But you can see the stars so well from here."
@tone none
```

To change only that character, write `@tone sepia who=Akari`. The full list of parameters is in [@tone](/en/reference/tone/). The background's `tone` is in [@bg](/en/reference/bg/), and how tones are decided is in [Color tone, depth, depth of field](/en/docs/design/format/#色調奥行き被写界深度) in the documentation.
