Fables Alive
Fables Alive

Reputation: 2810

editing hue and/or saturation of a CCSprite

is it possible to change hue and/or saturation of a CCSprite which texture is already loaded a.png ? looking something like this eg:

[CCSprite1 spriteWithImage@"img1.png"];
[CCSprite1 setHue:150];//<<<

Upvotes: 1

Views: 487

Answers (1)

CodeSmile
CodeSmile

Reputation: 64477

No, you can only change opacity and color (tint).

That is unless you write a custom fragment shader.

Upvotes: 1

Related Questions