I had to make a function that morphed the contents of an area in a Cocos2d game recently and I came across the problem of blending the effect inside my affected area with the outside. To overcome this and remove the sharp transition that was visible I created a couple of damping functions – one [...]

