Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!mintaka!bloom-beacon!eru!hagbard!sunic!mcsun!hp4nl!alchemy!markov From: markov@cs.ruu.nl (Mark Overmars) Newsgroups: comp.sys.sgi Subject: Getting compor map colors. Keywords: getmcolor Message-ID: <1991Apr22.153229.7358@cs.ruu.nl> Date: 22 Apr 91 15:32:29 GMT Organization: Utrecht University, Dept. of Computer Science Lines: 15 I have the following problem. I want to draw colormap images inside a RGB window. As a result I need to find out what the colors in the colormap are. To this end I thought I should use the routine getmcolor() Unfortunately, this routine only work when you are in colormap mode, not when you are in RGB mode. (Why?) So the question is, how do I do it. To make this precise: I have an RGB window open, and I want a routine my_color(col) that sets the current RGB color to the color in index col in the colormap. (I need this for making the forms in the FORMS library into RGB windows and still maintaining the current behaviour of the package.) Mark Overmars