Color
The RGBA color class.
The RGBA color class. Each component is handled with a floating point value (Float).
Superclass
Class Method
Color.new(red, green, blue[, alpha])
Creates a Color object. If alpha is omitted, it is assumed at 255.
Method
set(red, green, blue[, alpha])
Sets all components at once.
Properties
red
The red value (0-255). Values out of range are automatically corrected.
green
The green value (0-255). Values out of range are automatically corrected.
blue
The blue value (0-255). Values out of range are automatically corrected.
alpha
The alpha value (0-255). Values out of range are automatically corrected.
Last updated