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 |
- Source code: loader/Cache.js (Line 230)
Please login to continue.