Canvas.setImageRenderingBicubic()

<static> setImageRenderingBicubic(canvas) → {HTMLCanvasElement} Sets the CSS image-rendering property on the given canvas to be 'bicubic' (aka 'auto').Note that if this doesn't given the desired result then see the CanvasUtils.setSmoothingEnabled method. Parameters Name Type Description canvas HTMLCanvasElement The canvas to set image-rendering bicubic on. Returns HTMLCanvasElement - Returns the source canvas. Source code: utils/Canvas.js (Line 283)

Canvas.setBackgroundColor()

<static> setBackgroundColor(canvas, color) → {HTMLCanvasElement} Sets the background color behind the canvas. This changes the canvas style property. Parameters Name Type Argument Default Description canvas HTMLCanvasElement The canvas to set the background color on. color string <optional> 'rgb(0,0,0)' The color to set. Can be in the format 'rgb(r,g,b)', or '#RRGGBB' or any valid CSS color. Returns HTMLCanvasElement - Returns the source canvas. Source code: u

Canvas.removeFromDOM()

<static> removeFromDOM(canvas) Removes the given canvas element from the DOM. Parameters Name Type Description canvas HTMLCanvasElement The canvas to be removed from the DOM. Source code: utils/Canvas.js (Line 156)

Canvas.getSmoothingPrefix()

<static> getSmoothingPrefix(context) → {string | null} Gets the Smoothing Enabled vendor prefix being used on the given context, or null if not set. Parameters Name Type Description context CanvasRenderingContext2D The context to enable or disable the image smoothing on. Returns string | null - Returns the smoothingEnabled vendor prefix, or null if not set on the context. Source code: utils/Canvas.js (Line 217)

Canvas.getSmoothingEnabled()

<static> getSmoothingEnabled(context) → {boolean} Returns true if the given context has image smoothing enabled, otherwise returns false. Parameters Name Type Description context CanvasRenderingContext2D The context to check for smoothing on. Returns boolean - True if the given context has image smoothing enabled, otherwise false. Source code: utils/Canvas.js (Line 242)

Canvas.create()

<static> create(parent, width, height, id, skipPool) → {HTMLCanvasElement} Creates a canvas DOM element. The element is not automatically added to the document. Parameters Name Type Argument Default Description parent object The object that will own the canvas that is created. width number <optional> 256 The width of the canvas element. height number <optional> 256 The height of the canvas element.. id string <optional> (none) If specified, and n

Canvas.addToDOM()

<static> addToDOM(canvas, parent, overflowHidden) → {HTMLCanvasElement} Adds the given canvas element to the DOM. The canvas will be added as a child of the given parent.If no parent is given it will be added as a child of the document.body. Parameters Name Type Argument Default Description canvas HTMLCanvasElement The canvas to be added to the DOM. parent string | HTMLElement The DOM element to add the canvas to. overflowHidden boolean <optional> true If set to

Canvas#Canvas

new Canvas() The Canvas class handles everything related to creating the canvas DOM tag that Phaser will use,including styles, offset and aspect ratio. Source code: utils/Canvas.js (Line 14)

Camera.SHAKE_VERTICAL

[static] SHAKE_VERTICAL : number Source code: core/Camera.js (Line 225)

Camera.SHAKE_HORIZONTAL

[static] SHAKE_HORIZONTAL : number Source code: core/Camera.js (Line 219)