Cache#addCanvas()

addCanvas(key, canvas, context)

Add a new canvas object in to the cache.

Parameters
Name Type Argument Description
key string

The key that this asset will be stored in the cache under. This should be unique within this cache.

canvas HTMLCanvasElement

The Canvas DOM element.

context CanvasRenderingContext2D <optional>

The context of the canvas element. If not specified it will default go getContext('2d').

Source code: loader/Cache.js (Line 230)
doc_phaser
2017-02-14 10:39:51
Comments
Leave a Comment

Please login to continue.