Fun with Gradients and Masks

Marin Todorov has an excellent introduction to masking gradients:

“In this month’s issue I’d like to show you how to create animations that involve a CAGradientLayer but do not animate that layer itself. Instead you will create animations on the gradient’s mask content.”

Gradients and Masks