class ChunkyPNG::Palette

def initialize(enum, decoding_map = nil)

Parameters:
  • decoding_map (Array) -- An array of colors in the exact order at
  • enum (Enumerable) -- The set of colors to include in this
def initialize(enum, decoding_map = nil)
  super(enum.sort.freeze)
  @decoding_map = decoding_map if decoding_map
  @encoding_map = {}
  freeze
end