Skip to content

Ulydev/easy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

easy

easy is a minimalist LÖVE library that eases values ranging from 0 to 1.

demo

Setup

local ease = require "easy" --require the library

Usage

Get converted value (0-1)

converted = ease("elasticin", value)

Methods and aliases

Ease

ease(type, value)
//->ease:get(...)

Add easing function

ease:add(name, string)

string is a mathematical expression that takes a parameter called "x" for instance, "x * x + math.sqrt(x)"

Easing types

quad

cubic

quart

quint

expo

sine

circ

back

elastic

Add either "in" - "out" - "inout" at the end of each easing type

About

Ease easily with easy easing.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages