Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!cadence!shamu!baeder From: baeder@cadence.com (D. Scott Baeder; x299) Newsgroups: comp.windows.x Subject: Re: Can XAllocColor/XAllocNamedColor fail ? Message-ID: <1990Nov9.144721.22509@cadence.com> Date: 9 Nov 90 14:47:21 GMT References: <1990Nov8.174617.10793@ecn.purdue.edu> <1990Nov8.114127@wsl.dec.com> Sender: usenet@cadence.com (USENET News) Reply-To: baeder@cadence.com Distribution: na Organization: Cadence ACAE Division Lines: 12 |> XAllocColor finds the closest color supported by the visual, not the |> closest color in the colormap. It will fail if the requested color is |> not in the colormap and the colormap is full. XAllocNamedColor can |> also fail if the specified name is not in the color database. |> This leads me to a problem Im having, in that what exactly is closest, and what is the best way to allocate colors so that you get approx. what your looking for, even if the color map is getting "full" any code frags appreciated... thanks...scott