glsl-easings, 在GLSL中,可以作为glslify的模块,Robert函数的easing函数

分享于 

3分钟阅读

GitHub

  繁體 雙語
Robert Penner's easing functions in GLSL, available as a module for glslify.
  • 源代码名称:glsl-easings
  • 源代码网址:http://www.github.com/glslify/glsl-easings
  • glsl-easings源代码文档
  • glsl-easings源代码下载
  • Git URL:
    git://www.github.com/glslify/glsl-easings.git
    Git Clone代码到本地:
    git clone http://www.github.com/glslify/glsl-easings
    Subversion代码到本地:
    $ svn co --depth empty http://www.github.com/glslify/glsl-easings
    Checked out revision 1.
    $ cd repo
    $ svn up trunk
    
    x 射线 easings stable

    在GLSL中的函数,可以作为glslify的MODULE。

    我尽可以能让它们快速为,但我相信有很多空间来填充- 请求请求。

    用法

    NPM

    每个缓动函数都有自己的文件,这些文件可以从glslify中获取:

    #pragma glslify: ease = require(glsl-easings/back-in-out)#pragma glslify: ease = require(glsl-easings/back-in)#pragma glslify: ease = require(glsl-easings/back-out)#pragma glslify: ease = require(glsl-easings/bounce-in-out)#pragma glslify: ease = require(glsl-easings/bounce-in)#pragma glslify: ease = require(glsl-easings/bounce-out)#pragma glslify: ease = require(glsl-easings/circular-in-out)#pragma glslify: ease = require(glsl-easings/circular-in)#pragma glslify: ease = require(glsl-easings/circular-out)#pragma glslify: ease = require(glsl-easings/cubic-in-out)#pragma glslify: ease = require(glsl-easings/cubic-in)#pragma glslify: ease = require(glsl-easings/cubic-out)#pragma glslify: ease = require(glsl-easings/elastic-in-out)#pragma glslify: ease = require(glsl-easings/elastic-in)#pragma glslify: ease = require(glsl-easings/elastic-out)#pragma glslify: ease = require(glsl-easings/exponential-in-out)#pragma glslify: ease = require(glsl-easings/exponential-in)#pragma glslify: ease = require(glsl-easings/exponential-out)#pragma glslify: ease = require(glsl-easings/linear)#pragma glslify: ease = require(glsl-easings/quadratic-in-out)#pragma glslify: ease = require(glsl-easings/quadratic-in)#pragma glslify: ease = require(glsl-easings/quadratic-out)#pragma glslify: ease = require(glsl-easings/quartic-in-out)#pragma glslify: ease = require(glsl-easings/quartic-in)#pragma glslify: ease = require(glsl-easings/quartic-out)#pragma glslify: ease = require(glsl-easings/quintic-in-out)#pragma glslify: ease = require(glsl-easings/quintic-in)#pragma glslify: ease = require(glsl-easings/quintic-out)#pragma glslify: ease = require(glsl-easings/sine-in-out)#pragma glslify: ease = require(glsl-easings/sine-in)#pragma glslify: ease = require(glsl-easings/sine-out)

    每个函数都具有以下签名:

    float ease(float t)

    其中 t 是 0和 1之间的值,返回 0和之间的新浮点。

    许可证

    有关详细信息,请参见 LICENSE.md


    模块  FUNC  函数  functions  PEN  GLSL  
    相关文章