class_docstr: Base class of color palettes.
  
  Color palettes are mappings that assign integers from the range
  0..M{n-1} to colors (4-tuples). M{n} is called the size or length
  of the palette. C{igraph} comes with a number of predefined palettes,
  so this class is useful for you only if you want to define your
  own palette. This can be done by subclassing this class and implementing
  the L{Palette._get} method as necessary.
  
  Palettes can also be used as lists or dicts, for the C{__getitem__}
  method is overridden properly to call L{Palette.get}.
class_docstr_tok: ["Base","class","of","color","palettes",".","Color","palettes","are","mappings","that","assign","integers","from","the","range","0","..","M","{","n-1","}","to","colors","(","4-tuples",")",".","M","{","n","}","is","called","the","size","or","length","of","the","palette",".","C","{","igraph","}","comes","with","a","number","of","predefined","palettes",",","so","this","class","is","useful","for","you","only","if","you","want","to","define","your","own","palette",".","This","can","be","done","by","subclassing","this","class","and","implementing","the","L","{","Palette._get","}","method","as","necessary",".","Palettes","can","also","be","used","as","lists","or","dicts",",","for","the","C","{","__getitem__","}","method","is","overridden","properly","to","call","L","{","Palette.get","}","."]
docstr: Returns multiple colors from the palette.
  
  Values are cached: if the specific value given has already been
  looked upon, its value will be returned from the cache instead of
  calculating it again. Use L{Palette.clear_cache} to clear the cache
  if necessary.
  
  @param colors: the list of colors to be retrieved. The palette class
    tries to make an educated guess here: if it is not possible to
    interpret the value you passed here as a list of colors, the
    class will simply try to interpret it as a single color by
    forwarding the value to L{Palette.get}.
  @return: the colors as a list of RGBA quadruplets. The result will
    be a list even if you passed a single color index or color name.
docstr_tok: ["Returns","multiple","colors","from","the","palette",".","Values","are","cached",":","if","the","specific","value","given","has","already","been","looked","upon",",","its","value","will","be","returned","from","the","cache","instead","of","calculating","it","again",".","Use","L","{","Palette.clear_cache","}","to","clear","the","cache","if","necessary",".","@","param","colors",":","the","list","of","colors","to","be","retrieved",".","The","palette","class","tries","to","make","an","educated","guess","here",":","if","it","is","not","possible","to","interpret","the","value","you","passed","here","as","a","list","of","colors",",","the","class","will","simply","try","to","interpret","it","as","a","single","color","by","forwarding","the","value","to","L","{","Palette.get","}",".","@","return",":","the","colors","as","a","list","of","RGBA","quadruplets",".","The","result","will","be","a","list","even","if","you","passed","a","single","color","index","or","color","name","."]
code: def get_many(self, colors):
      """Returns multiple colors from the palette.
  
      Values are cached: if the specific value given has already been
      looked upon, its value will be returned from the cache instead of
      calculating it again. Use L{Palette.clear_cache} to clear the cache
      if necessary.
  
      @param colors: the list of colors to be retrieved. The palette class
        tries to make an educated guess here: if it is not possible to
        interpret the value you passed here as a list of colors, the
        class will simply try to interpret it as a single color by
        forwarding the value to L{Palette.get}.
      @return: the colors as a list of RGBA quadruplets. The result will
        be a list even if you passed a single color index or color name.
      """
      if isinstance(colors, (str, int)):
          # Single color name or index
          return [self.get(colors)]
      # Multiple colors
      return [self.get(color) for color in colors]
  
imports: from abc import ABCMeta, abstractmethod
  from math import ceil
label_desc: Use image node_id 4 for calling the Palette obj's underlying member method code with example usage: obj.get_many(colors) and returns: unknown, list