From 979f399d884c980cd796decd4dcc379c36426226 Mon Sep 17 00:00:00 2001 From: LoveEevee Date: Mon, 1 Oct 2018 15:05:21 +0300 Subject: [PATCH] Crown fade in with easeIn --- public/src/js/scoresheet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/js/scoresheet.js b/public/src/js/scoresheet.js index 097ed73..cf7e216 100644 --- a/public/src/js/scoresheet.js +++ b/public/src/js/scoresheet.js @@ -404,7 +404,7 @@ class Scoresheet{ } if(crownType !== null){ var amount = Math.min(1, (elapsed - 1200) / 450) - this.draw.alpha(amount, ctx, ctx => { + this.draw.alpha(this.draw.easeIn(amount), ctx, ctx => { ctx.save() ctx.scale(ratio, ratio) ctx.translate(frameLeft, frameTop)