home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cis.ohio-state.edu!udecc.engr.udayton.edu!blackbird.afit.af.mil!usafa!hewitt
- From: hewitt@usafa.af.mil (Joe Hewitt)
- Newsgroups: comp.windows.x
- Subject: Changing Colormap RGB values...
- Keywords: colormap RGB XView
- Message-ID: <549@usafa.af.mil>
- Date: 23 Jul 92 03:17:12 GMT
- Distribution: comp.windows.x
- Organization: U.S. Air Force Academy, Colorado
- Lines: 28
-
-
-
- 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).
-
- H/W & S/W: Sun SS 2 running OW 2.
-
- Project: I am developing a simple app using XView to allow users
- to interactively change the RGB component values of a
- given colormap index. The idea is when the colormap
- components change, all objects drawn using that index
- automatically assume the new color without any application
- procedure getting called to do the drawing.
-
- Request: I would like to see sample code that changes the RGB
- values on the fly. Can someone help?
-
- Many thanks in advance.
-
- Cheers!
-
- --Joe
- --
- ) ( / \ ) ) _/__/_
- \ ^ / _/__/___ _ /__ / _ _ _ o / /
- \_/ \_/ o (_/ (__)__(/__ / / (/__(_/\_)_(_(__(__
- W. Joe Hewitt, 1Lt, USAF hewitt@usafa.af.mil
-