diff --git a/scripts/result.lua b/scripts/result.lua index 0c2532c..f588c71 100644 --- a/scripts/result.lua +++ b/scripts/result.lua @@ -65,12 +65,14 @@ end function drawTimingBar(y, value, max, type) gfx.BeginPath(); + local barAlpha = math.floor(Easing.outQuad(transitionEnterScale)*255) + if type == 'crit' then - gfx.FillColor(253,243,24,255); + gfx.FillColor(253,243,24,barAlpha); elseif type == 'early' then - gfx.FillColor(215,48,182,255); + gfx.FillColor(215,48,182,barAlpha); elseif type == 'late' then - gfx.FillColor(46,211,241,255); + gfx.FillColor(46,211,241,barAlpha); end gfx.Rect(rightPanelX+696,rightPanelY+y,293*(value/max), 8); @@ -189,7 +191,7 @@ end local tickTransitions = function(deltaTime) if transitionEnterScale < 1 then - transitionEnterScale = transitionEnterScale + deltaTime / 1 -- transition should last for 1s + transitionEnterScale = transitionEnterScale + deltaTime / 10 -- transition should last for 1s else transitionEnterScale = 1 end