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.

Instance Attribute Summary collapse

Constructors collapse

Constructor Details

#initializeColor #initialize(ary) ⇒ Color #initialize(red, green, blue, alpha = 1.0) ⇒ Color

Returns a new instance of Color.

Overloads:

  • #initializeColor

    Creates a new object with default color set.

  • #initialize(ary) ⇒ Color

    Creates a new object with 3-element or 4-element Array.

  • #initialize(red, green, blue, alpha = 1.0) ⇒ Color

    Creates a new object.



1272
# File 'doc/API_reference.rb', line 1272

def initialize(*args); end

Instance Attribute Details

#alphaFloat



1287
1288
1289
# File 'doc/API_reference.rb', line 1287

def alpha
  @alpha
end

#blueFloat



1284
1285
1286
# File 'doc/API_reference.rb', line 1284

def blue
  @blue
end

#greenFloat



1281
1282
1283
# File 'doc/API_reference.rb', line 1281

def green
  @green
end

#redFloat



1278
1279
1280
# File 'doc/API_reference.rb', line 1278

def red
  @red
end