Jump to content

Not working arcTo method


coter
 Share

Recommended Posts

OK, 

  1. The documentation for arcTo is completely wrong: the way this method works is actually the same as 2d canvas context arcTo as described here.
    The x1,y1 point is not the starting point of the arc, it is the second point of the first tangent. The first tangent is from x0,y0 to x1,y1 which, in your case is 100,100 to 100,100.
  2. Based on this, your example is not a feasible shape because your initial tangent is a zero length line.
  3. It's not clear what you are trying to draw.
Link to comment
Share on other sites

OK,

  • The documentation for arcTo is completely wrong: the way this method works is actually the same as 2d canvas context arcTo as described here.

    The x1,y1 point is not the starting point of the arc, it is the second point of the first tangent. The first tangent is from x0,y0 to x1,y1 which, in your case is 100,100 to 100,100.

  • Based on this, your example is not a feasible shape because your initial tangent is a zero length line.
  • It's not clear what you are trying to draw.

Hey coolblue, would you mind putting in a PR to fix those docs? Thanks!

Link to comment
Share on other sites

  • 3 years later...
Quote

The x1,y1 point is not the starting point of the arc, it is the second point of the first tangent.

I believe this has not been fixed yet in the docs, in case anyone else stumbles over this. 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...