Home > Enterprise >  Strange problem with UIBezierPath animation
Strange problem with UIBezierPath animation

Time:10-13

I want to draw the Moon and then animate Moon's shadow. But after launching this code I can see some glitches on animation line: enter image description here

GIF: enter image description here

Why is this happening?

Playground code enter image description here

CodePudding user response:

The way you do each of the two lines,

is simply, two control points!

One at each end.

That's all there is to it. Don't try using an arc.

Here ...

https://www.desmos.com/calculator/cahqdxeshd

  • Related