I tried to find solution how to create grayscale effect for given texture. I was going to use rendertexture to get an array of texture colors and then applying grayscale effect on it. Maybe you know some already worked code snippets for my purpose.
The code below throws an Uncaught ReferenceError: kmGLPushMatrix is not defined.
var renderTexture = new cc.RenderTexture.create(100,100); renderTexture.beginWithClear(255,255,255,0); backButton.visit(); renderTexture.end();
By the way found an issue with cc.Image.
var image = new cc.Image(); causes “Uncaught TypeError: undefined is not a function”.