class Color

Public Class Methods

_load(bytes) click to toggle source
# File lib/RGSS.rb, line 83
def self._load(bytes)
    Color.new(bytes)
end
new(bytes) click to toggle source
# File lib/RGSS.rb, line 75
def initialize(bytes)
  @r, @g, @b, @a = *bytes.unpack('D4')
end

Public Instance Methods

_dump(*ignored) click to toggle source
# File lib/RGSS.rb, line 79
def _dump(*ignored)
  return [@r, @g, @b, @a].pack('D4')
end