Method: Gosu::Color#initialize

Defined in:
rdoc/gosu.rb

#initialize(argb) ⇒ Color #initialize(a, r, g, b) ⇒ Color

Returns a new instance of Color.

Overloads:

  • #initialize(argb) ⇒ Color

    Parameters:

    • argb (Integer)

      an integer of the form 0xAARRGGBB.

  • #initialize(a, r, g, b) ⇒ Color

    Parameters:

    • a (Integer)

      the color’s alpha channel in the range [0; 255].

    • r (Integer)

      the color’s red channel in the range [0; 255].

    • g (Integer)

      the color’s green channel in the range [0; 255].

    • b (Integer)

      the color’s blue channel in the range [0; 255].

See Also:



169
# File 'rdoc/gosu.rb', line 169

def initialize(*args); end