Stefan
Stefan

Reputation:

Quartz2D: How to draw an arc of a circle?

I would like to draw an arc of a circle like in this sketch:

sketch

The angle of the arc should be variable and it should be colored with a gradient (e.g. starting with red and going to green). How do you do this in Quartz2D?

Thanks for your answers! Stefan

Upvotes: 1

Views: 3055

Answers (1)

Eimantas
Eimantas

Reputation: 49354

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

Upvotes: 1

Related Questions