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: Reverses the color map, so that the color assigned to a value of 1 now appears at 0 and vice versa.
  This is convenient to adjust imported color maps.
docstr_tok: ["Reverses","the","color","map",",","so","that","the","color","assigned","to","a","value","of","1","now","appears","at","0","and","vice","versa",".","This","is","convenient","to","adjust","imported","color","maps","."]
code: def reverse(self):
      """
      Reverses the color map, so that the color assigned to a value of 1 now appears at 0 and vice versa.
      This is convenient to adjust imported color maps.
      """
      self.pos = 1.0 - np.flip(self.pos)
      self.color = np.flip(self.color, axis=0)
      self.stopsCache = {}
  
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 6 for calling the ColorMap obj's underlying member method code with example usage: obj.reverse() without return types