简体   繁体   中英

Quartz2D: How to draw an arc of a circle?

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

草图

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

Thanks for your answers! Stefan

我认为此页面具有弧形部分,而此部分处理渐变的绘制。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM