Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!samsung!crackers!m2c!wpi!fenn From: fenn@wpi.wpi.edu (Brian Fennell) Newsgroups: comp.graphics Subject: Xwindows colormaps Keywords: color, light mixing, colormaps, Xwindows Message-ID: <14264@wpi.wpi.edu> Date: 31 Jul 90 22:44:02 GMT Organization: Worcester Polytechnic Institute, Worcester, Mass. Lines: 19 Just a few quick questions about colors: If I know the pigment mix of a given color (3 parts red 1 part yellow) how can I translate this into a RGB mix that will give me a similar color? And visa versa? This need not be exact. Similarly, If I have two colors how do I generate an intermediate color N percent from color A to color B. (Or is this a daft idea?) In "Volume 4, X Toolkit Intrinsics Programming Manual: for X Version 11" by Adrian Nye and Tim O'Reilly (chapter 10.1.5: Colormaps) reads: "If your application absolutely requires accurate colors, a certain number of distinguishable colors, or dynamically changeable colors, you will need to write your own converter to allocate colors." Does anyone have such a converter? Does anyone know how I can force X to give me the color I ask for? Thanks, Brian Fennell == fenn@wpi.wpi.edu