veltman / flubber

Tools for smoother shape animations.
MIT License
6.65k stars 170 forks source link

Support for open/unclosed polygons (polylines) #99

Open Rob-ot opened 5 years ago

Rob-ot commented 5 years ago

Thanks for this amazing library!

Flubber works great for polygons but we're also trying to use it to transition a polyline. This mostly works except two issues:

Is this behavior something that could be suppressed with a polyline/unclosed flag??

2019-01-24_14-38-06

Thanks!

veltman commented 5 years ago

Hey Rob, this is definitely on the todo list. That being said, it could be a while before I get to it, so feel free to submit a PR if you want to take a crack at it!

a-rts commented 5 years ago

Hi there! I'd also love to interpolate open paths like that.

Is there any workaround to the randomly altering points like @Rob-ot showed?

Here's how the end of each interpolation works for me (the initial spazzing is probably because of my implementation): 2019-07-31 23 39 52

jclaessens97 commented 8 months ago

Hi, since this issue is open for 5 years now I was wondering if someone here made any progress on interpolation for polylines? If not I would maybe look into it, but then it would be nice to receive some pointers on where to start and where the differences lay with polygons :) (cc @veltman)