Find the point on an html canvas arc given a percentage

+1 vote
asked Sep 13, 2017 by flyingkiwi9

I've taken to using an animation solution loosely based on the answer to this question:

I want to do animation of an object along a particular path

As you can see @markE provided a neat answer which contains a few clever functions, particularly:

getLineXYatPercent(), getQuadraticBezierXYatPercent(), getCubicBezierXYatPercent()

These functions give the coordinates of a percentage through their various elements.

How would I create a similar function based on Canvas' arcTo() method?


Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.
Welcome to Q&A, where you can ask questions and receive answers from other members of the community.
Website Online Counter