basiljs / basil.js

An attempt to port the spirit of the Processing visualization language to Adobe Indesign.
http://basiljs.ch/
Other
246 stars 30 forks source link

interpolation of poly points #57

Open ff6347 opened 8 years ago

ff6347 commented 8 years ago

As mentioned in #50 A lerp like function to tween/interpolate between shapes.

Possible problems:

trych commented 8 years ago

Ok, I just started to work on this, I have a first draft now that does simple linear interpolation of shapes and their appearance (strokeWeight, tint etc.). At the moment it seems to do alright with "straight corners". For curved path points … not so much. ;) Will look more closely into this soon, but I am optimistic.

Note: this is heavily WIP and has a lot of bugs still. In case you are still interested you can find the branch (including the WIP example script that I used for the screen shot) here: https://github.com/trych/basil.js/tree/lerpShape

bildschirmfoto 2016-07-20 um 02 29 15