Tone

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

Superclass

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.

Converted from CHM to HTML with chm2web Pro 2.85 (unicode)