p5.tween
p5.tween copied to clipboard
Support access for nested elements
The following code is not working, because the access for nested objects is not supported.
const myShape = {
pos: {
x: 100,
y: 100
}
}
p5.tween.manager.addTween(myShape).addMotion('pos.x', 10, 1000)
Possible solution: https://stackoverflow.com/questions/6491463/accessing-nested-javascript-objects-and-arays-by-string-path