Phaser API Documentation

  Version: 
scaleCanvas(x, y)

Description:

Inserts a scale command into this Graphics objects command buffer.

All objects drawn after calling this method will be scaled by the given amount.

This does not change the scale of the Graphics object itself, only of the objects drawn by it after calling this method.

Parameters:

name type description
x number

The horizontal scale to apply.

y number

The vertical scale to apply.

Returns:
Description:

This Game Object.

Since: 3.0.0