Skip to content

Much smoother morphing - #1

Open
vjamrich wants to merge 1 commit into
hathibelagal-dev:masterfrom
vjamrich:master
Open

Much smoother morphing#1
vjamrich wants to merge 1 commit into
hathibelagal-dev:masterfrom
vjamrich:master

Conversation

@vjamrich

@vjamrich vjamrich commented Mar 2, 2021

Copy link
Copy Markdown

Currently, morphing transition only looks 'smooth' when the starting (and ending) point of both paths are relatively close to eachother.

  • The current code is morphing between points based on their indices, which is suboptimal

Simple heuristics were added, where the morphing pairs are shifted based on their sum of squared distances.
This way, the animation looks much smoother:

@ivofernandes

Copy link
Copy Markdown

I tested here and it works great :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants