-1

I have searched alot for this. But there are not any feasible solutions to this. I got this much Getting and setting the RGB / RGBA value of a pixel in a CCSprite (cocos2d-x). But i want to change the RGB values of pixels of my sprite where I click or move on the sprite. Basically its like coloring.The color of pixels change as we move on the sprite.

Community
  • 1
  • 1
Hassan Dar
  • 31
  • 6
  • Improve your question by providing solutions that you tested, chunks of code, or a deeper explanation of what you wish to accomplish. – Anderson Madeira Aug 08 '15 at 11:46

1 Answers1

0

i can't see your code,so i don't know what's wrong with it ,but there have a better way to change pix color,that is shader,if you know how to use glprogream in cocos2dx ,i can write a shader to you ,then you can change the pix color