Tone

The color tone class. Each component is handled with a floating-point value (Float).

Superclass

Class Method

Tone.new(red, green, blue[, gray])
Tone.new (RGSS3)

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

The default values when no arguments are specified are (0, 0, 0, 0). (RGSS3)

Methods

set(red, green, blue[, gray])
set(tone) (RGSS3)

Sets all components at once.

The second format copies all the components from a separate Tone object. (RGSS3)

Properties

red

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

green

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

blue

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

gray

The grayscale filter strength (0 to 255). Out-of-range values are automatically corrected.

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