On Fri, Sep 5, 2008 at 1:09 PM, dexters <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> does one of you know if it is possible to change the Hue/Color of a
> loaded image? I am asking for two reasons:
>
> 1. For my multiplayer game I need basically the same image for all
> players with different colors. It would be nice if there would be a
> way of changing the color of an image dynamically, so I don't have to
> load one image per player.

two ways to do this that i can think of now:

1- use PIL to process the images
2- draw them by hand doing a glColor before blitting the image

> 2. I would like to highlight sprites that are 'activatable' at a
> certaint point in time, by highlighting them.
>

i once did something similar.
i created a copy of the image, used some gimp filters and got
something like a border/shadow version of the image. then i colorized
it in bright yellow.
then i added the image as a child of the sprite with z>0 and got it
transparent. changing the alpha i had the "highlight" i was looking
for.

Lucio.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cocos2d discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cocos-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to