I'm trying to create an infinitely beating heart using p5js and gsap.
I used constructor to make a shape and timeline to animate its size, though it doesn't work.
How can I animate the variable inside the constructor? Or can I morph between 2 shape made with constructor?
Thanks in advance.