Method: RGSS::Color#initialize

Defined in:
lib/rgss/stubs/color.rb

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

Creates a new instance of the RGSS::Color class.

Parameters:

  • red (Float)

    the red component, a normalized value between 0.0 and 1.0.

  • green (Float)

    the green component, a normalized value between 0.0 and 1.0.

  • blue (Float)

    the blue component, a normalized value between 0.0 and 1.0.

  • alpha (Float) (defaults to: 1.0)

    the alpha component, a normalized value between 0.0 and 1.0.



42
43
# File 'lib/rgss/stubs/color.rb', line 42

def initialize(red, green, blue, alpha = 1.0)
end