-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
arcTo does not work #28
Comments
More precisely: for shallow angles (arc spans less than 90 degrees) It appears to work correctly for sharp angles. |
Actually, it only works for sharp angles (arcs of 90 degrees or more) in the clockwise direction. Sharp angles in counter-clockwise direction have the correct origin but wrong start/end angles. Shallow angles in counter-clockwise direction have both problems. |
I made a clone of the project and fixed it. You can check my fix here: |
@bogdan-nourescu I see you've fixed the shallow arc issue. But if I'm not wrong, you didn't fix the anticlockwise issue. I've got a fix for that to share with anyone who is maintaining their repo, let me know. |
This is the code.
let size=500;
let x1=0;
let x2=size/2;
let x3=size;
let y1=size/32;
let y3=size/32;
let y2=size/2;
The text was updated successfully, but these errors were encountered: