Can you please explain angle and weight calculations a bit? #8
-
Hey there, I thought that idea of getting the initial weights, for each SVG point, and then using them to rebuild the position when control points are changed is really nifty. But I'll be honest - I don't really understand all of the math used. It would be super helpful if you have time to explain these two code segments: Calculating angle: Lines 116 to 119 in adc3488 Calculating weight: Lines 129 to 131 in adc3488 Cheers! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @Stanko! Thank you for feedback :-) And the library I used — https://github.com/benjamminf/warpjs |
Beta Was this translation helpful? Give feedback.
Hi @Stanko! Thank you for feedback :-)
Actually, I also want to be honest — have no idea, because I copy/paste the code from this discussion benjamminf/warpjs#11 (comment)
And the library I used — https://github.com/benjamminf/warpjs