kikito / anim8

An animation library for LÖVE
MIT License
730 stars 88 forks source link

"flip" method(s) #4

Closed kikito closed 11 years ago

kikito commented 11 years ago

I tried this once and failed. Let me see if I can come up with an reasonable API for this.

kikito commented 11 years ago

Possible APIs:

local a = anim8.newAnimation(...)

local a1 = anim8.flipH(a)
local a2 = anim8.flip('horizontal', a1)
local a3 = a:flipH()
local a4 = a:flip('horizontal') -- make horizontal by default