I would like to do the following: Havehave a background of a given size and fill itfilled with a given color. Every time I change this color thewant to change should be done animatedit with an animation effect, starting from the center and spread out until it extends the whole background. Also theThe new color should fade / blend smooth into the existing color from the background. Some kind of radial gradient that changes the color and then spreads out over the whole background.
I am working with SpriteKit on iOS and I am really sure that the best way to implement this is to do this with fragment shaders which are new to iOS 8 SpriteKit SDK. I have done some work with shaders and understand how they work but I am asking for help more on the mathematics behind this.