Mail Archives: djgpp/1997/03/05/11:45:49
Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk> wrote in article
<YWclicAYDIHzEwuo AT talula DOT demon DOT co DOT uk>...
[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)
- Raw text -