Can I animate a radial gradient in iPhone?
Posted
by user364782
on Stack Overflow
See other posts from Stack Overflow
or by user364782
Published on 2010-06-11T17:34:55Z
Indexed on
2010/06/11
19:22 UTC
Read the original article
Hit count: 263
I would like to animate a radial gradient to shrink and grow the inner radius, as if it were pulsing.
Right now I'm rendering the gradient with CGGradient, but I'm not sure how to animate it. I've seen this topic
http://stackoverflow.com/questions/1819311/can-you-animate-gradients-using-quartz-in-an-iphone
Which explains how animate a linear gradient with CAGradientLayer, but it doesn't seem like this will draw a radial gradient.
Is there an easy way to animate a CGGradient, or some way to create a radial gradient CAGradientLayer?
Any thoughts are appreciated.
© Stack Overflow or respective owner