Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!mintaka!bloom-beacon!dont-send-mail-to-path-lines From: ekberg@asl.dl.nec.COM (Tom Ekberg) Newsgroups: comp.windows.x Subject: Re: Creating & Installing a Colormap Message-ID: <9104221445.AA02402@aslss01.asl.dl.nec.com> Date: 22 Apr 91 14:45:50 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 15 > I am using Xlib and need to install a colormap with very specific RGB > values for each pixel. I basically want to specify shades of 1 color > with increasing intensities. > eg. > R G B > 250 20 20 > 245 20 20 > 240 20 20 The problem is that color values are scaled to 65535 (0..65525) and not 255 (0..255). If you multiply your values by 256 you will be much closer to the colors that you want. -- tom, ekberg@asl.dl.nec.com (x3503)