# Tone

Each component is handled with a floating point value ([Float](https://enls.gitbook.io/rgss-reference-manual/standard-library/built-in-classes/object/numeric/float)).

## Superclass

* [Object](https://enls.gitbook.io/rgss-reference-manual/standard-library/built-in-classes/object)

## Class Method

### Tone.new(*red, green, blue*\[*, gray*])

Creates a Tone object. If gray is omitted, it is assumed at 0.

## Method

### set(red, green, blue\[, gray])

Sets all components at once.

## Properties

### red

The red balance adjustment value (-255 to 255). Values out of range are automatically corrected.

### green

The green balance adjustment value (-255 to 255). Values out of range are automatically corrected.

### blue

The blue balance adjustment value (-255 to 255). Values out of range are automatically corrected.

### gray

The grayscale filter strength (0 to 255). Values out of range are automatically corrected.

When this value is not 0, processing time is significantly longer than when using tone balance adjustment values alone.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://enls.gitbook.io/rgss-reference-manual/game-library/rgss-built-in-classes/tone.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
