2008 09 03Radial Gradients as Backgrounds
Using
CGContextDrawRadialGradient
to draw the background renders a smoother gradient than a linear gradient :
The 'fully radial' looks like a linear 'ping pong' gradient, it's in fact the bottom of the radial gradient, stretched to fit the entire view height.
As I didn't put sample code on Oval radial gradients, here's some to draw a radial background, change colors and 'radialness' : RadialGradients.zip.
Thanks for posting this. It's a nice to be able to see a complete gradient example put together in such a compact, straightforward way.