Class | Rubygame::Color::ColorRGB |
In: |
lib/rubygame/color/models/rgb.rb
lib/rubygame/color/models/rgb.rb |
Parent: | Object |
Represents color in the RGB (Red, Green, Blue) color space.
a | [R] | |
a | [R] | |
b | [R] | |
b | [R] | |
g | [R] | |
g | [R] | |
r | [R] | |
r | [R] |
Create a new instance from an Array or an existing color (of any type). If the alpha (opacity) component is omitted from the array, full opacity will be used.
All color components range from 0.0 to 1.0.
Create a new instance from an Array or an existing color (of any type). If the alpha (opacity) component is omitted from the array, full opacity will be used.
All color components range from 0.0 to 1.0.