jonobr1 / two.js

A renderer agnostic two-dimensional drawing api for the web.
https://two.js.org
MIT License
8.31k stars 455 forks source link

Update path.js #583

Closed dickinson0718 closed 2 years ago

dickinson0718 commented 2 years ago

Small typo in the comment -- I think that start should be stop in line 77.

I'm searching for a way to to control where zero is in an ellipse. If I declare an ellipse with

this.frontHalf = new Two.Ellipse(0, 0, 0.5, 1); this.frontHalf.beginning = 0 this.frontHalf.ending = 0.5

Then half of the ellipse should show up, but which half? I was hoping for a command like

https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/arc

Where I could set a start and end angle. Any insights?

Will

dickinson0718 commented 2 years ago

Please ignore my question about the interaction between Ellipse and beginning/ending. I was using an out of date version and since moving to 0.7.13, it works the way I expect! Thanks! Will

jonobr1 commented 2 years ago

Glad to hear and thanks for contributing!