Circle.scale not working in onFrame

15 views
Skip to first unread message

Michael Sartore

unread,
Mar 20, 2021, 10:20:40 PMMar 20
to Paper.js
Hi,
I'm using user input variables to update the dimensions of a circle.
These are updated in an onFrame function.
When I use circle.scale(scaleInput);
I get circle.scale is not a function.
However, when I use circle.scaling I get results,
But they are not as expected, and seem to compound the value as opposed to simply "setting" it to the user's scaleInput.

Any help with this would be great.
Thanks!

Michael Sartore

unread,
Mar 21, 2021, 6:46:32 PMMar 21
to Paper.js

My issue was that I was using scale on a Circle path, not a shape..in which case, I am now able to animate the .radius property. Which works great.
Reply all
Reply to author
Forward
0 new messages