function changes the colormap entries of the pixel values in the pixel
members of the XColor structures. The colormap entries are allocated
as if an AllocColor has been used instead, i.e. the colors are
returns the number of colors that were successfully allocated in the colormap.
error is generated if a pixel is not a valid index into the colormap. A
error is generated if the colormap does not belong to a GrayScale,
PseudoColor, or DirectColor visual.
Applications which allocate many colors in a screens default colormap, e.g.
a color-cube or a gray-ramp, should allocate them with
By using XCupStoreColors the colors will be allocated sharable (read-only)
and any other application which allocates the same color will share that