Class: MG::Color

Inherits:
Object
  • Object
show all
Defined in:
doc/API_reference.rb

Overview

The MG::Color.new constructor will return the black color.

Properties collapse

Instance Attribute Details

#alphaFloat

Returns the alpha portion of the color, from 0.0 to 1.0.

Returns:

  • (Float)

    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

#blueFloat

Returns the blue portion of the color, from 0.0 to 1.0.

Returns:

  • (Float)

    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

#greenFloat

Returns the green portion of the color, from 0.0 to 1.0.

Returns:

  • (Float)

    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

#redFloat

Returns the red portion of the color, from 0.0 to 1.0.

Returns:

  • (Float)

    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