Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

eliasku/hxease

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hxease

Build Status Build status

Lang Version Dependencies License

Ease functions for Haxe

Usage examples

var ratio:Float = 0.5;
var easedValue:Float = 0;

// default easings usage
easedValue = Back.easeOut.calculate(ratio);

// make custom easing parameters
easedValue = new BackEaseOut(2.01).calculate(ratio);

// Float static extension with
// `using hxease.Tools`
easedValue = ratio.backOut().circIn();

TODO

  1. custom curves
  2. tools for ratio manipulations