matlab-easing

版本 0.1.3 (1.7 KB) 作者: Yarmo Mackenbach
Simple easing functions for MATLAB.
24.0 次下载
更新时间 2019/4/16

y = easing(t, b, c, d) interpolates at timepoints t between b and the
change in value c with a transition duration of d. By default, a linear
interpolation is used.

easing(..., f) uses interpolation function f, taking the following
values:
LINEAR
- 1 lin (default)
QUADRATIC
- 2 quadInOut
- 2.1 quadIn
- 2.2 quadOut
CUBIC
- 3 cubicInOut
- 3.1 cubicIn
- 3.2 cubicOut
QUARTIC
- 4 quartInOut
- 4.1 quartIn
- 4.2 quartOut
QUINTIC
- 5 quintInOut
- 5.1 quintIn
- 5.2 quintOut
SINUSOIDAL
- sinInOut
- sinIn
- sinOut
EXPONENTIAL
- expInOut
- expn
- expOut
CIRCULAR
- circInOut
- circIn
- circOut

When specifying the easing function, both strings and numbers are
accepted, according to the list above.

Examples
easing(5, 0, 10, 10); % Linear interpolation between 0 and 10
easing(0:100, 1, 1, 100, 5.2); % QuinticOut interpolation between 1 and 2

引用格式

Yarmo Mackenbach (2024). matlab-easing (https://github.com/YarmoM/matlab-easing), GitHub. 检索来源 .

MATLAB 版本兼容性
创建方式 R2010a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Time Series 的更多信息
标签 添加标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

无法下载基于 GitHub 默认分支的版本

版本 已发布 发行说明
0.1.3

Added image

0.1.2

Uploaded on GitHub

0.1.1

easing() is now insensitive to casing

0.1.0

要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库
要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库