Color

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

Superclass

Class Method

Color.new(red, green, blue[, alpha])
Color.new (RGSS3)

Creates a Color object. If alpha is omitted, it is assumed to be 255.

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

Methods

set(red, green, blue[, alpha])
set(color) (RGSS3)

Sets all components at once.

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

Properties

red

The red value (0-255). Out-of-range values are automatically corrected.

green

The green value (0-255). Out-of-range values are automatically corrected.

blue

The blue value (0-255). Out-of-range values are automatically corrected.

alpha

The alpha value (0-255). Out-of-range values are automatically corrected.