1
0
mirror of https://github.com/kepler155c/opus synced 2024-11-14 04:34:49 +00:00

minor tweaks

This commit is contained in:
kepler155c@gmail.com 2020-04-03 18:57:57 -06:00
parent d88ef00652
commit cd58ecd861

View File

@ -3,8 +3,8 @@ local Tween = require('opus.ui.tween')
local Transition = { }
function Transition.slideLeft(args)
local ticks = args.ticks or 10
local easing = args.easing or 'outQuint'
local ticks = args.ticks or 8
local easing = args.easing or 'inCirc'
local pos = { x = args.ex }
local tween = Tween.new(ticks, pos, { x = args.x }, easing)
@ -19,8 +19,8 @@ function Transition.slideLeft(args)
end
function Transition.slideRight(args)
local ticks = args.ticks or 10
local easing = args.easing or 'outQuint'
local ticks = args.ticks or 8
local easing = args.easing or 'inCirc'
local pos = { x = -args.canvas.width }
local tween = Tween.new(ticks, pos, { x = 1 }, easing)