From: "Sly" Newsgroups: comp.os.msdos.djgpp Subject: Re: Lighting Techniques Date: 5 Mar 1997 02:38:10 GMT Organization: Sly Lines: 20 Message-ID: <01bc290e$ccc6e8c0$8a081ecb@sly> References: <01bc2853$aa224320$4cddf4cc AT imag DOT net DOT imag DOT net> NNTP-Posting-Host: max0ppp08.bne.aussie.net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Shawn Hargreaves wrote in article ... [snip] > > If you want to tint the sprites to some color other than black, pass a > color other than "0, 0, 0" to the create_light_table() routine, eg. > "255, 255, 255" to tint the images to white. If you want to tint them in > both directions, you could (a bit more work) use the > create_color_table() function to build a lookup table which will treat > light level 128 as the original color, 0 as black, and 255 as white. > [snip] When I read this, I started thinking how this would be achieved (the lookup table to treat light level 128 as the original colour, 0 as black, and 255 as white). But I can't think of how it would be done. Any tips? -- TTFN Sly (Steve)