maliang.animation.controllers¶
字数 222 个 代码 31 行 阅读时间 1 分钟 访问量
源代码:maliang/animation/controllers.py
Controller generator and standard control functions.
Definition of control function:
t
: 0% ~ 100%, indicates the percentage of time- return: real number, indicates a multiple of the cardinality of the animation
🔵_map_t
¶
function
protected
start
: the first value of the parameter of the base functionend
: the last value of the parameter of the base function
🔵_map_y
¶
function
protected
base
: base functionend
: the last value of the parameter of the base function
🔵ease_in
¶
function
public
t
: the percentage of time
🔵ease_out
¶
function
public
t
: the percentage of time
🔵generate
¶
function
public
base
: base function, an ordinary mathematical functionstart
: the first value of the parameter of the base functionend
: the last value of the parameter of the base functionmap_y
: whether map the final return value to 1
🔵linear
¶
function
public
t
: the percentage of time
🔵rebound
¶
function
public
t
: the percentage of time
🔵smooth
¶
function
public
t
: the percentage of time