Added alpha:transparency to canvas renderer
This commit is contained in:
parent
228fa97b16
commit
53dcef5277
2 changed files with 2 additions and 4 deletions
|
@ -7358,8 +7358,7 @@ PIXI.CanvasRenderer = function(width, height, view, transparent)
|
||||||
* @property context
|
* @property context
|
||||||
* @type Canvas 2d Context
|
* @type Canvas 2d Context
|
||||||
*/
|
*/
|
||||||
this.context = this.view.getContext( "2d" );
|
this.context = this.view.getContext( "2d" , { alpha: this.transparent } );
|
||||||
|
|
||||||
//some filter variables
|
//some filter variables
|
||||||
this.smoothProperty = null;
|
this.smoothProperty = null;
|
||||||
|
|
||||||
|
|
|
@ -99,8 +99,7 @@ PIXI.CanvasRenderer = function(width, height, view, transparent)
|
||||||
* @property context
|
* @property context
|
||||||
* @type Canvas 2d Context
|
* @type Canvas 2d Context
|
||||||
*/
|
*/
|
||||||
this.context = this.view.getContext( "2d" );
|
this.context = this.view.getContext( "2d" , { alpha: this.transparent } );
|
||||||
|
|
||||||
//some filter variables
|
//some filter variables
|
||||||
this.smoothProperty = null;
|
this.smoothProperty = null;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue