Skip to content

thomasuster/cubic-bezier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cubic-bezier

CSS style cubic easing for haxe. A port of https://github.com/gre/bezier-easing

Getting Started

  1. git clone git@github.com:thomasuster/cubic-bezier.git

  2. haxelib dev cubic-bezier cubic-bezier

  3. Use the visual editor to find the 4 ease values you want http://greweb.me/bezier-easing-editor/example/

  4. Plug them in!

var cb:CubicBezier = new CubicBezier(0.00, 0.55, 1.00, 0.11); //The 4 values

//Do something with your ease function! 
var time:Float = 0.2;
var percentage:Float = cb.ease(time);
trace(percentage);

About

CSS style cubic easing for haxe

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages