[comp.graphics] Xwindows colormaps

fenn@wpi.wpi.edu (Brian Fennell) (08/01/90)

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