Pomax / bezierjs

A nodejs and client-side library for (cubic) Bezier curve work
MIT License
1.73k stars 233 forks source link

isLinear check and codepaths for that #170

Closed Pomax closed 2 years ago

Pomax commented 2 years ago

Closes https://github.com/Pomax/bezierjs/issues/148 once finished.

This also changes the drawShape() function in the graphics API, as end caps were linear cubic curves, which was a bit weird. They're not linear quadratics, which is still a little weird, but at least marginally better.

Pomax commented 2 years ago

Correct cases (taking into account this does not resolve the true start/end coordinates yet):

image