I am familiar with colorTransfer function and what the next two lines would do
const ctfun = vtkColorTransferFunction.newInstance();
ctfun.addRGBPoint(200.0, 1.0, 1.0, 1.0);
However, there are a number of colormaps here in colorMaps.json that I would like to get more information about.
- What is the mapping between RGBPoints in to the colors?
- Is there a min and max for RGBPoints array? Why there is a -1(I thought it should be between[0,1]?
- What is "NanColor"in some of the colormaps
Thanks!
Here is the jet colormap as an example
{
  "ColorSpace" : "RGB",
  "Name" : "jet",
  "RGBPoints" : [
      -1,
      0,
      0,
      0.5625,
      -0.777778,
      0,
      0,
      1,
      -0.269841,
      0,
      1,
      1,
      -0.015873,
      0.5,
      1,
      0.5,
      0.238095,
      1,
      1,
      0,
      0.746032,
      1,
      0,
      0,
      1,
      0.5,
      0,
      0
  ]
},