Method: RGSS::Tone#initialize

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

#initialize(red, green, blue, gray = 0.0) ⇒ Tone

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

Parameters:

  • red (Float)

    the value of the red color component, a normalized value between -1.0 and 1.0.

  • green (Float)

    the value of the green color component, a normalized value between -1.0 and 1.0.

  • blue (Float)

    the value of the blue color component, a normalized value between -1.0 and 1.0.

  • gray (Float) (defaults to: 0.0)

    the value of the grayscale factor to apply, a normalized value between 0.0 and 1.0.



52
53
# File 'lib/rgss/stubs/tone.rb', line 52

def initialize(red, green, blue, gray = 0.0)
end