Class: MG::Color
- Inherits:
-
Object
- Object
- MG::Color
- Defined in:
- doc/API_reference.rb
Overview
The MG::Color.new
constructor will return the black color.
Properties collapse
-
#alpha ⇒ Float
The alpha portion of the color, from
0.0
to1.0
. -
#blue ⇒ Float
The blue portion of the color, from
0.0
to1.0
. -
#green ⇒ Float
The green portion of the color, from
0.0
to1.0
. -
#red ⇒ Float
The red portion of the color, from
0.0
to1.0
.
Instance Attribute Details
#alpha ⇒ Float
Returns the alpha portion of the color, from 0.0
to 1.0
.
1144 1145 1146 |
# File 'doc/API_reference.rb', line 1144 def alpha @alpha end |
#blue ⇒ Float
Returns the blue portion of the color, from 0.0
to 1.0
.
1141 1142 1143 |
# File 'doc/API_reference.rb', line 1141 def blue @blue end |
#green ⇒ Float
Returns the green portion of the color, from 0.0
to 1.0
.
1138 1139 1140 |
# File 'doc/API_reference.rb', line 1138 def green @green end |
#red ⇒ Float
Returns the red portion of the color, from 0.0
to 1.0
.
1135 1136 1137 |
# File 'doc/API_reference.rb', line 1135 def red @red end |