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.
Instance Attribute Summary 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
.
Constructors collapse
-
#initialize(*args) ⇒ Color
constructor
A new instance of Color.
Constructor Details
Instance Attribute Details
#alpha ⇒ Float
Returns the alpha portion of the color, from 0.0
to 1.0
.
1287 1288 1289 |
# File 'doc/API_reference.rb', line 1287 def alpha @alpha end |
#blue ⇒ Float
Returns the blue portion of the color, from 0.0
to 1.0
.
1284 1285 1286 |
# File 'doc/API_reference.rb', line 1284 def blue @blue end |
#green ⇒ Float
Returns the green portion of the color, from 0.0
to 1.0
.
1281 1282 1283 |
# File 'doc/API_reference.rb', line 1281 def green @green end |
#red ⇒ Float
Returns the red portion of the color, from 0.0
to 1.0
.
1278 1279 1280 |
# File 'doc/API_reference.rb', line 1278 def red @red end |