Cocos2d - lunar eclipse effect on iPhone
问题 i have a question about achieving an effect like on a lunar eclipse. The effect should look like in the first seconds of this gif. So just like a black shadow which goes over the circle. The ideal situation would be a function where i can passed a parameter in percentage to get this amount as a shadow on the circle: The problem which i am facing is that my background is an gradient. So it's not possible to have a black circle which moves over the moon to get the effect. I tried something with