mouse0w0 / mouse0w0.github.io

https://mouse0w0.github.io
5 stars 0 forks source link

以贝塞尔曲线渲染一个SVG椭圆弧 | 耗子的博客 #14

Open mouse0w0 opened 5 years ago

mouse0w0 commented 5 years ago

https://mouse0w0.github.io/2018/10/28/Rendering-an-SVG-elliptical-arc-as-bezier-curves/

本文翻译自:https://mortoray.com/2017/02/16/rendering-an-svg-elliptical-arc-as-bezier-curves/ 我需要绘制椭圆和圆弧,如果没有它们就不能完成一个向量API。但苹果的核心图形库除了轴对齐圆弧外没有其他的东西。安卓有椭圆,但似乎也限制它轴对齐。这意味着我要将椭圆转换成一组贝塞尔曲线,用于这些后端API。 在本文中,另