class ChunkyPNG::Palette
def index(color)
- See: ChunkyPNG::Palette#can_encode? -
Returns:
-
(Fixnum)
- The 0-based position of the color in the palette.
Parameters:
-
color
(ChunkyPNG::Color
) -- The color for which to look up the index.
def index(color) @encoding_map[color] end