easy - ease values easily

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
User avatar
Ulydev
Party member
Posts: 445
Joined: Mon Nov 10, 2014 10:46 pm
Location: Paris
Contact:

easy - ease values easily

Post by Ulydev »

Hey there,

another small library that can be used to work with easing functions.

It's basically a minimalist wrapper for rxi's flux

Image

Code: Select all

ease = require "easy"

value = 0

function love.update(dt)
  value = (value + dt) % 1
end

function love.draw()
  local converted = ease("circinout", value)
end
https://github.com/Ulydev/easy
Last edited by Ulydev on Sat Aug 20, 2016 12:19 am, edited 1 time in total.
User avatar
Ulydev
Party member
Posts: 445
Joined: Mon Nov 10, 2014 10:46 pm
Location: Paris
Contact:

Re: easy - ease values easily

Post by Ulydev »

-Added ease:add(name, expr)

Code: Select all

ease:add("myEasing", "( x + math.sqrt(x) ) * .5"
User avatar
georgeprosser
Citizen
Posts: 68
Joined: Fri Mar 28, 2014 5:55 pm

Re: easy - ease values easily

Post by georgeprosser »

Fab, was about to go and implement all these myself!
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests