improvement: better rythm for transitions

This commit is contained in:
Kazhnuz 2021-04-02 22:24:14 +02:00
parent f0b696117b
commit d611f3214c
2 changed files with 2 additions and 2 deletions

View file

@ -2,7 +2,7 @@ local TransitionParent = require "core.modules.transitions.canvas"
local DefaultTransition = TransitionParent:extend() local DefaultTransition = TransitionParent:extend()
function DefaultTransition:new(func, ox, oy, fadeOut) function DefaultTransition:new(func, ox, oy, fadeOut)
DefaultTransition.super.new(self, func, ox, oy, fadeOut, "inQuad", "outQuad", 0.35, 0.1) DefaultTransition.super.new(self, func, ox, oy, fadeOut, "inQuad", "outQuad", 0.8, 0.1)
end end
function DefaultTransition:drawCanvas() function DefaultTransition:drawCanvas()

View file

@ -2,7 +2,7 @@ local TransitionParent = require "core.modules.transitions.parent"
local DefaultTransition = TransitionParent:extend() local DefaultTransition = TransitionParent:extend()
function DefaultTransition:new(func, ox, oy, fadeOut) function DefaultTransition:new(func, ox, oy, fadeOut)
DefaultTransition.super.new(self, func, ox, oy, fadeOut, "inQuad", "outQuad", 0.35, 0.15) DefaultTransition.super.new(self, func, ox, oy, fadeOut, "inQuad", "outQuad", 0.35, 0.1)
end end
function DefaultTransition:draw() function DefaultTransition:draw()