mirror of
https://github.com/photonstorm/phaser
synced 2024-11-25 22:20:44 +00:00
New canvas GetContext function.
This commit is contained in:
parent
002facb59a
commit
47a6434abb
1 changed files with 9 additions and 0 deletions
9
v3/src/canvas/GetContext.js
Normal file
9
v3/src/canvas/GetContext.js
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
var GetContext = function (canvas, options)
|
||||||
|
{
|
||||||
|
return (
|
||||||
|
canvas.getContext('2d', options) ||
|
||||||
|
null
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
module.exports = GetContext;
|
Loading…
Reference in a new issue