Specifies the pixel and RGB values or the color name string (for example, red).
Specifies an array of color definition structures to be stored.
Specifies the colormap.
Specifies the connection to the X server.
Specifies which red, green, and blue components are set.
XColor structures in the color definition array.
Specifies the entry in the colormap.
XStoreColors can generate BadAccess, BadColor, and BadValue errors.
The XStoreColor function changes the colormap entry of the pixel value specified in the pixel member of the XColor structure. You specified this value in the pixel member of the XColor structure. This pixel value must be a read/write cell and a valid index into the colormap. If a specified pixel is not a valid index into the colormap, a BadValue error results. XStoreColor also changes the red, green, and/or blue color components. You specify which color components are to be changed by setting DoRed, DoGreen, and/or DoBlue in the flags member of the XColor structure. If the colormap is an installed map for its screen, the changes are visible immediately.
XStoreColor can generate BadAccess, BadColor, and BadValue errors.
The XStoreNamedColor function looks up the named color with respect to the screen associated with the colormap and stores the result in the specified colormap. The pixel argument determines the entry in the colormap. The flags argument determines which of the red, green, and blue components are set. You can set this member to the bitwise inclusive OR of the bits DoRed, DoGreen, and DoBlue. If the color name is not in the Host Portable Character Encoding, the result is implementation-dependent. Use of uppercase or lowercase does not matter. If the specified pixel is not a valid index into the colormap, a BadValue error results. If the specified pixel either is unallocated or is allocated read-only, a BadAccess error results.
XStoreNamedColor can generate BadAccess, BadColor, BadName, and BadValue errors.