minor tweaks

This commit is contained in:
kepler155c@gmail.com 2020-04-03 18:57:57 -06:00
parent d88ef00652
commit cd58ecd861
1 changed files with 4 additions and 4 deletions

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)