home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!mouse
- From: mouse@thunder.mcrcim.mcgill.edu (der Mouse)
- Newsgroups: comp.windows.x
- Subject: Re: Changing Colormap RGB values...
- Keywords: colormap RGB XView
- Message-ID: <1992Jul25.110130.8333@thunder.mcrcim.mcgill.edu>
- Date: 25 Jul 92 11:01:30 GMT
- References: <549@usafa.af.mil>
- Organization: McGill Research Centre for Intelligent Machines
- Lines: 20
-
- > Distribution: comp.windows.x
-
- Please don't misuse newsgroup names as distributions.
-
- In article <549@usafa.af.mil>, hewitt@usafa.af.mil (Joe Hewitt) writes:
-
- > Problem: How to dynamically change the RGB values in a colormap
- > entry so that all objects using that colormap index
- > automatically change to the new color (in XView or Xlib).
-
- Briefly, XStoreColor() / XStoreColors(). The only point that's likely
- to trip you up is that you have to allocate the colormap entries
- read/write, with XAllocColorCells (or XAllocColorPlanes, but if you
- understand X color well enough to use XAllocColorPlanes and get it
- right, you almost certainly wouldn't be asking what you did).
-
- der Mouse
-
- mouse@larry.mcrcim.mcgill.edu
-