请告诉我如何使用NSBezierPath添加循环过程。我知道方法appendBezierPathWithArcWithCenter但它是如何工作的。 提前谢谢
答案 0 :(得分:0)
NSBezierPath * path = [NSBezierPath bezierPath];
[path setLineWidth:2];
NSPoint center = { 250,250 };
[path moveToPoint: center];
[path appendBezierPathWithArcWithCenter: center
radius: 64
startAngle: 0
endAngle: 321];
[[NSColor whiteColor] set];
[path fill];
[[NSColor grayColor] set];
[path stroke];