iOS: CAShape Layer Path Transformation

前端 未结 3 1136
一个人的身影
一个人的身影 2021-01-03 12:55

I have used CAShape Layer before doing basic transformation on paths - from a smaller circle into a larger circle. Good enough, but then I tried to transform a

3条回答
  •  鱼传尺愫
    2021-01-03 13:31

    I'm guessing here! You can define a circle using 3 points. That way you will have the same number of points as the triangle. To define the circle this will be your best friend

    + (UIBezierPath *)bezierPathWithArcCenter:(CGPoint)center radius:(CGFloat)radius startAngle:(CGFloat)startAngle endAngle:(CGFloat)endAngle clockwise:(BOOL)clockwise;
    

提交回复
热议问题