tnfe / FFCreator

A fast video processing library based on node.js (一个基于node.js的高速视频制作库)
http://tnfe.github.io/FFCreator/
MIT License
2.83k stars 400 forks source link

求问addAnimate方法中rotate属性的单位 #408

Open CardiQ opened 10 months ago

CardiQ commented 10 months ago

我写了以下代码,以使元素text3旋转实现倾斜效果。 现在需要对应角度的正切值来实现移动动作,因此求问其中rotate这个属性的单位,目前观察的不像是以角度或弧度为单位。 (或者有更好的实现方法,我的理解并不深入)

text3.addAnimate({
      from: { rotate: 0, alpha: 0 },
      to: { rotate: -19, alpha: 0 },
      time: 0.4,
      delay: 0,
      ease: 'Quadratic.In'
    });
drawcall commented 10 months ago

deg