Method: Gosu::Color.rgba

Defined in:
rdoc/gosu.rb

.rgba(rgba) ⇒ Color .rgba(r, g, b, a) ⇒ Color

Returns a new instance of Color.

Overloads:

  • .rgba(rgba) ⇒ Color

    Parameters:

    • an integer of the form 0xRRGGBBAA.

  • .rgba(r, g, b, a) ⇒ Color

    Parameters:

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

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

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

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

Returns:

  • a new instance of Color

See Also:



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

def self.rgba(*args); end