Hi There,
I’m writing a sports game, and rather than doing new images for each team, I’d like to know if it’s possible to do direct color replacement on an image?
thanks
Daniel
Hi There,
I’m writing a sports game, and rather than doing new images for each team, I’d like to know if it’s possible to do direct color replacement on an image?
thanks
Daniel
Would tinting be an acceptable option for you?
See the ‘Tinting’ section here:
http://docs.coronalabs.com/api/type/VectorObject/setFillColor.html
Tinting can be done in the current SDK as well.
Hi I don’t think it’s an ideal solution. Say I’ve got a player, he’s got a head, hands, shoes and body, each with their own colour.
The body is a uniform with a strip, so it has two colours.
I don’t think the tinting is going to work on different parts of the image is it?
The only thing I could suggest is breaking the player up into different images and co-ordinating them all together. I think it would be easier to redo all the images?
So are you saying that colour replacement is definitely not available at the moment?
thanks
As far as I know, direct color replacement isn’t possible.
You could break your player into several parts. Parts that can be tinted and parts for the rest of the player, and then combine them into a display group. But that might be overkill if you only have a limited number of players to deal with.
I wonder if the hue filter would work?
Would tinting be an acceptable option for you?
See the ‘Tinting’ section here:
http://docs.coronalabs.com/api/type/VectorObject/setFillColor.html
Tinting can be done in the current SDK as well.
Hi I don’t think it’s an ideal solution. Say I’ve got a player, he’s got a head, hands, shoes and body, each with their own colour.
The body is a uniform with a strip, so it has two colours.
I don’t think the tinting is going to work on different parts of the image is it?
The only thing I could suggest is breaking the player up into different images and co-ordinating them all together. I think it would be easier to redo all the images?
So are you saying that colour replacement is definitely not available at the moment?
thanks
As far as I know, direct color replacement isn’t possible.
You could break your player into several parts. Parts that can be tinted and parts for the rest of the player, and then combine them into a display group. But that might be overkill if you only have a limited number of players to deal with.
I wonder if the hue filter would work?