[LCP]gl_setpalettecolor

Andrew Weaver Andrew.Weaver at tecnomen.fi
Mon Aug 13 22:42:04 UTC 2001


Don't know offhand but the prototype looks similar to setting up a
"colormap" in other graphic libs.

int c is probably a colour designation within the map and the r, g and b are
probably the red, green and blue values respectively. These values are
typically in range 0 to 256 so you can create blue by 0, 0, 256 - or
something similar.

Look for a command that allows you to write in colour on the screen and see
if it wants you to tell it which colour to use. That is probably then the
int c param.

> -----Original Message-----
> From:	Srinath Thiruvengadam [SMTP:rangar20 at eth.net]
> Sent:	Monday, August 13, 2001 2:17 PM
> To:	linuxCprogramming at lists.linux.org.au
> Subject:	[LCP]gl_setpalettecolor
> 
> Hello everybody,
>  
> i am using svgalib. i dont understand what the function
> gl_setpalettecolor does.
>  
> the prototype is something  like this   
>  
> gl_setpalettecolor(int c, int r, int g, int b)
>  
> i read the man pages and i dont understand !
> please help!
>  
> Thanks & Regards, 
> Srinath



More information about the linuxCprogramming mailing list