class_docstr: ColorMap(pos, color, mapping=ColorMap.CLIP)
  
  ColorMap stores a mapping of specific data values to colors, for example:
  
      | 0.0 → black
      | 0.2 → red
      | 0.6 → yellow
      | 1.0 → white
  
  The colors for intermediate values are determined by interpolating between
  the two nearest colors in RGB color space.
  
  A ColorMap object provides access to the interpolated colors by indexing with a float value:
  ``cm[0.5]`` returns a QColor corresponding to the center of ColorMap `cm`.
docstr: getLookupTable(start=0.0, stop=1.0, nPts=512, alpha=None, mode=ColorMap.BYTE)
  
  Returns an equally-spaced lookup table of RGB(A) values created
  by interpolating the specified color stops.
  
  Parameters
  ----------
  start:  float, default=0.0
      The starting value in the lookup table
  stop: float, default=1.0
      The final value in the lookup table
  nPts: int, default=512
      The number of points in the returned lookup table.
  alpha: bool, optional
      Specifies whether or not alpha values are included in the table.
      If alpha is None, it will be automatically determined.
  mode: int or str, default='byte'
      Determines return type as described in :func:`map() <pyqtgraph.ColorMap.map>`, can be
      either `ColorMap.BYTE` (0 to 255), `ColorMap.FLOAT` (0.0 to 1.0) or `ColorMap.QColor`.
  
  Returns
  -------
  np.ndarray of {``ColorMap.BYTE``, ``ColorMap.FLOAT``}
      for `ColorMap.BYTE` or `ColorMap.FLOAT`:
  
      RGB values for each `data` value, arranged in the same shape as `data`.
      If alpha values are included the array has shape (`nPts`, 4), otherwise (`nPts`, 3).
  
  list of QColor
      for `ColorMap.QCOLOR`:
  
      Colors for each `data` value as QColor objects.
docstr_tok: ["getLookupTable","(","start=0.0",",","stop=1.0",",","nPts=512",",","alpha=None",",","mode=ColorMap.BYTE",")","Returns","an","equally-spaced","lookup","table","of","RGB","(","A",")","values","created","by","interpolating","the","specified","color","stops",".","Parameters","--","--","--","--","--","start",":","float",",","default=0.0","The","starting","value","in","the","lookup","table","stop",":","float",",","default=1.0","The","final","value","in","the","lookup","table","nPts",":","int",",","default=512","The","number","of","points","in","the","returned","lookup","table",".","alpha",":","bool",",","optional","Specifies","whether","or","not","alpha","values","are","included","in","the","table",".","If","alpha","is","None",",","it","will","be","automatically","determined",".","mode",":","int","or","str",",","default='byte'","Determines","return","type","as","described","in",":","func",":","`","map","(",")","<","pyqtgraph.ColorMap.map",">","`",",","can","be","either","`","ColorMap.BYTE","`","(","0","to","255",")",",","`","ColorMap.FLOAT","`","(","0.0","to","1.0",")","or","`","ColorMap.QColor","`",".","Returns","--","--","--","-","np.ndarray","of","{","``","ColorMap.BYTE","``",",","``","ColorMap.FLOAT","``","}","for","`","ColorMap.BYTE","`","or","`","ColorMap.FLOAT","`",":","RGB","values","for","each","`","data","`","value",",","arranged","in","the","same","shape","as","`","data","`",".","If","alpha","values","are","included","the","array","has","shape","(","`","nPts","`",",","4",")",",","otherwise","(","`","nPts","`",",","3",")",".","list","of","QColor","for","`","ColorMap.QCOLOR","`",":","Colors","for","each","`","data","`","value","as","QColor","objects","."]
code: def getLookupTable(
      self, start=0.0, stop=1.0, nPts=512, alpha=None, mode=BYTE
  ):
      """
      getLookupTable(start=0.0, stop=1.0, nPts=512, alpha=None, mode=ColorMap.BYTE)
  
      Returns an equally-spaced lookup table of RGB(A) values created
      by interpolating the specified color stops.
  
      Parameters
      ----------
      start:  float, default=0.0
          The starting value in the lookup table
      stop: float, default=1.0
          The final value in the lookup table
      nPts: int, default=512
          The number of points in the returned lookup table.
      alpha: bool, optional
          Specifies whether or not alpha values are included in the table.
          If alpha is None, it will be automatically determined.
      mode: int or str, default='byte'
          Determines return type as described in :func:`map() <pyqtgraph.ColorMap.map>`, can be
          either `ColorMap.BYTE` (0 to 255), `ColorMap.FLOAT` (0.0 to 1.0) or `ColorMap.QColor`.
  
      Returns
      -------
      np.ndarray of {``ColorMap.BYTE``, ``ColorMap.FLOAT``}
          for `ColorMap.BYTE` or `ColorMap.FLOAT`:
  
          RGB values for each `data` value, arranged in the same shape as `data`.
          If alpha values are included the array has shape (`nPts`, 4), otherwise (`nPts`, 3).
  
      list of QColor
          for `ColorMap.QCOLOR`:
  
          Colors for each `data` value as QColor objects.
      """
      if isinstance(mode, str):
          mode = self.enumMap[mode.lower()]
  
      if alpha is None:
          alpha = self.usesAlpha()
  
      x = np.linspace(start, stop, nPts)
      table = self.map(x, mode)
  
      if not alpha and mode != self.QCOLOR:
          return table[:, :3]
      else:
          return table
  
imports: from collections.abc import Callable, Sequence
  from os import listdir, path
  import numpy
  from .functions import clip_array, clip_scalar, colorDistance, eq, mkColor
  from .Qt import QtCore, QtGui
label_desc: Use image node_id 18 for calling the ColorMap obj's underlying member method code with example usage: obj.getLookupTable(start, stop, nPts, alpha, mode) and returns: table, table