Circle.scale not working in onFrame

瀏覽次數:18 次
跳到第一則未讀訊息

Michael Sartore

未讀,
2021年3月20日 晚上10:20:402021/3/20
收件者: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

未讀,
2021年3月21日 下午6:46:322021/3/21
收件者: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.
回覆所有人
回覆作者
轉寄
0 則新訊息