Converting (Red,Green, Blue) into FL_COLOR indices

Gwenael Durand (
Mon, 12 May 1997 14:00:46 +0200

To subscribers of the xforms list from Gwenael Durand <> :


I'd like to display in a form, a dozen of small boxes with different
My application gives me the different colors in the form of (r,g,b)

Is it possible (and how :) to find the FL_COLOR indices from those
triples (ie the opposite of fl_get_icm_color()),
or do i have to create my own colormap?


Gwenael Durand ( )
/\_\ Laboratoire LIP6 - ASIM (ex MASI)
\/_/ Universite Pierre et Marie Curie - Paris 6
To unsubscribe, send the message "unsubscribe" to or see
Xforms Home Page:
List Archive: