scale
private scale(game: Application, x: number, y: number) → {}
scale the "displayed" canvas by the given scalar. this will modify the size of canvas element directly. Only use this if you are not using the automatic scaling feature.
Name | Type | Description |
---|---|---|
game | Application |
the game application instance triggering the resize |
x | number |
x scaling multiplier |
y | number |
y scaling multiplier |
Type | Description |
---|