abitofcode

April 30, 2012
by Chris
7 Comments

CCRenderTexture category – percentage complete

Here’s a Category to return the percentage of a CCRendertexture that is transparent i.e what percentage of the pixels have an alpha value of zero. Question originally asked on cocos2d forum. I’ve thrown together a quick example project where a … Continue reading