Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
AS3中是否有这种功能:
g.fillArc(5,5,w-10,h-10,90,-360*value/limit); // JAVA
据我所知没有。不过,您应该能够通过适当的调用来模拟它的行为Graphics.curveTo()。它正在确定正确的控制点,这使它不方便,但它是可行的。这是一个关于如何用贝塞尔曲线近似圆的文档,这在确定正确的参数时会派上用场。
Graphics.curveTo()
这可能是您的解决方案:http ://www.pixelwit.com/blog/2008/12/drawing-closed-arc-shape/