The color specification stored for the color cell is returned in this XcmsColor structure. If the pixel is not a valid index in the specified colormap, a BadValue error results. Diagnostics BadColor A value for a Colormap argument does not name a defined Colormap.
Some numeric value falls outside the range of values accepted by the request.
Unless a specific range is specified for an argument, the full range defined by the argument's type is accepted. Any argument defined as a set of alternatives can generate this error.