Class: Tone
- Inherits:
-
Object
- Object
- Tone
- Defined in:
- lib/RGSS.rb
Class Method Summary collapse
Instance Method Summary collapse
- #_dump(*ignored) ⇒ Object
-
#initialize(bytes) ⇒ Tone
constructor
A new instance of Tone.
Constructor Details
#initialize(bytes) ⇒ Tone
Returns a new instance of Tone.
97 98 99 |
# File 'lib/RGSS.rb', line 97 def initialize(bytes) @r, @g, @b, @a = *bytes.unpack('D4') end |
Class Method Details
Instance Method Details
#_dump(*ignored) ⇒ Object
101 102 103 |
# File 'lib/RGSS.rb', line 101 def _dump(*ignored) return [@r, @g, @b, @a].pack('D4') end |