All of these are allocated writable by the request. For GrayScale or PseudoColor , each mask has exactly one bit set to 1. For DirectColor , each has exactly three bits set to 1. The RGB values of the allocated entries are undefined. 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.