How to make a conical gradient in iOS using Core Graphics / Quartz 2D?

后端 未结 4 1072
不思量自难忘°
不思量自难忘° 2020-12-10 05:23

How can I draw such a conical gradient in iOS using Core Graphics / Quartz 2D API?


(source: ods.com.ua)

4条回答
  •  有刺的猬
    2020-12-10 05:44

    There is no Quartz function for this style of gradient. Unless you're ready to dig into mathematics behind it, I'd suggest you use pre-made images for this. It's not a problem if you need it only for opacity mask.

提交回复
热议问题