@param c The connection
@param cmap TODO
@param red The red value of your color.
@param green The green value of your color.
@param blue The blue value of your color.
@return A cookie
Allocates a read-only colormap entry corresponding to the closest RGB value
supported by the hardware. If you are using TrueColor, you can take a shortcut
and directly calculate the color pixel value to avoid the round trip. But, for
example, on 16-bit color setups (VNC), you can easily get the closest supported
RGB value to the RGB value you are specifying.
@brief Allocate a color
@param c The connection @param cmap TODO @param red The red value of your color. @param green The green value of your color. @param blue The blue value of your color. @return A cookie
Allocates a read-only colormap entry corresponding to the closest RGB value supported by the hardware. If you are using TrueColor, you can take a shortcut and directly calculate the color pixel value to avoid the round trip. But, for example, on 16-bit color setups (VNC), you can easily get the closest supported RGB value to the RGB value you are specifying.