XForms: colormap

Yann Guichoux (guichoux@shom.fr)
Tue, 08 Dec 1998 13:56:45 +0100

# To subscribers of the xforms list from Yann Guichoux <guichoux@shom.fr> :

Hi,

here is the message I get when I run my application :

"In MapColor [flcolor.c 807] ColormapFull. Using subsititutions"

In fact, I want to map about 100 colors after color number 50 ;

A piece of my code :

/*************************************/

fl_free_colors(cols,100);

for (i = 0; i <= nshades ; i++)
{
hue = start_hue - i * delta_hue;
hsv_to_rgb (&red,&green,&blue, 360.0 * hue, sat, val);


fl_mapcolor(50+i,red,green,blue);


}

what's wrong with this ? fl_free_colors() doesn't seem to be the good
function to use in this case...any suggestion ?

Thanks for any help.

YG
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/