since I'm pretty new to Paper.js I really need some help with this one:
I am having a MouseEnter event on an path element:
pathArr[0].onMouseEnter = function(event) {
console.log("test");
}
works fine so far. But what I want to do is obviously not just a simple console log, I want to start the animation function like:
pathArr[0].onMouseEnter = function(event) {
function onFrame(event) {
pathArr[1].segments[1].point += (throughPoint - pathArr[1].segments[1].point) / 10;
}
}
but unfortunately nothing happens. How can I do it that the onFrame()
function initialises after the onMouseEnter?
Thanks in advance.