Skip to content

Instantly share code, notes, and snippets.

@mebens
Created April 26, 2011 10:34
Show Gist options
  • Save mebens/942091 to your computer and use it in GitHub Desktop.
Save mebens/942091 to your computer and use it in GitHub Desktop.
API suggestions for kikito. api.lua is the usage. implementation.lua is a possible implementation.
tween.update(dt)
tween(t, goal, callback, easing)
tween = {}
function tween.to(t, goal, callback, easing)
-- ...
end
function tween.update(dt)
-- ...
end
setmetatable(tween, { __call = function(_, ...) tween.to(...) end })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment