+1  A: 

I think this page has the arc part, while this part handles drawing of gradients.

Eimantas
Ok, thank you.I didn't find out how to draw the gradient along the arc. Now I am coloring the arc with changing colors over time.