Crown fade in with easeIn
This commit is contained in:
parent
59bce4d6ed
commit
979f399d88
@ -404,7 +404,7 @@ class Scoresheet{
|
|||||||
}
|
}
|
||||||
if(crownType !== null){
|
if(crownType !== null){
|
||||||
var amount = Math.min(1, (elapsed - 1200) / 450)
|
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.save()
|
||||||
ctx.scale(ratio, ratio)
|
ctx.scale(ratio, ratio)
|
||||||
ctx.translate(frameLeft, frameTop)
|
ctx.translate(frameLeft, frameTop)
|
||||||
|
Loading…
Reference in New Issue
Block a user