diff --git a/examples/example 13 - Graphics/indexLineTest.html b/examples/example 13 - Graphics/indexLineTest.html index 3a63325..21d460a 100644 --- a/examples/example 13 - Graphics/indexLineTest.html +++ b/examples/example 13 - Graphics/indexLineTest.html @@ -25,8 +25,7 @@ var sprite= PIXI.Sprite.fromImage("spinObj_02.png"); //stage.addChild(sprite); // create a renderer instance - // the 5the parameter is the anti aliasing - var renderer = PIXI.autoDetectRenderer(620, 380, null, false, true); + var renderer = PIXI.autoDetectRenderer(620, 380, null, false /* transparent */, true /* antialias */); // set the canvas width and height to fill the screen //renderer.view.style.width = window.innerWidth + "px"; diff --git a/examples/example 13 - Graphics/indexLineTest.html b/examples/example 13 - Graphics/indexLineTest.html index 3a63325..21d460a 100644 --- a/examples/example 13 - Graphics/indexLineTest.html +++ b/examples/example 13 - Graphics/indexLineTest.html @@ -25,8 +25,7 @@ var sprite= PIXI.Sprite.fromImage("spinObj_02.png"); //stage.addChild(sprite); // create a renderer instance - // the 5the parameter is the anti aliasing - var renderer = PIXI.autoDetectRenderer(620, 380, null, false, true); + var renderer = PIXI.autoDetectRenderer(620, 380, null, false /* transparent */, true /* antialias */); // set the canvas width and height to fill the screen //renderer.view.style.width = window.innerWidth + "px"; diff --git a/examples/example 7 - Transparent Background/index.html b/examples/example 7 - Transparent Background/index.html index 019f645..6c9bdb8 100644 --- a/examples/example 7 - Transparent Background/index.html +++ b/examples/example 7 - Transparent Background/index.html @@ -32,7 +32,8 @@ // create a renderer instance - var renderer = PIXI.autoDetectRenderer(400, 300,false,true); + var renderer = PIXI.autoDetectRenderer(400, 300, null, true, true); + // add the renderer view element to the DOM document.body.appendChild(renderer.view); diff --git a/examples/example 13 - Graphics/indexLineTest.html b/examples/example 13 - Graphics/indexLineTest.html index 3a63325..21d460a 100644 --- a/examples/example 13 - Graphics/indexLineTest.html +++ b/examples/example 13 - Graphics/indexLineTest.html @@ -25,8 +25,7 @@ var sprite= PIXI.Sprite.fromImage("spinObj_02.png"); //stage.addChild(sprite); // create a renderer instance - // the 5the parameter is the anti aliasing - var renderer = PIXI.autoDetectRenderer(620, 380, null, false, true); + var renderer = PIXI.autoDetectRenderer(620, 380, null, false /* transparent */, true /* antialias */); // set the canvas width and height to fill the screen //renderer.view.style.width = window.innerWidth + "px"; diff --git a/examples/example 7 - Transparent Background/index.html b/examples/example 7 - Transparent Background/index.html index 019f645..6c9bdb8 100644 --- a/examples/example 7 - Transparent Background/index.html +++ b/examples/example 7 - Transparent Background/index.html @@ -32,7 +32,8 @@ // create a renderer instance - var renderer = PIXI.autoDetectRenderer(400, 300,false,true); + var renderer = PIXI.autoDetectRenderer(400, 300, null, true, true); + // add the renderer view element to the DOM document.body.appendChild(renderer.view); diff --git a/src/pixi/utils/Detector.js b/src/pixi/utils/Detector.js index 3d4b2c3..dea205a 100644 --- a/src/pixi/utils/Detector.js +++ b/src/pixi/utils/Detector.js @@ -11,11 +11,11 @@ * @param width=800 {Number} the width of the renderers view * @param height=600 {Number} the height of the renderers view * @param [view] {Canvas} the canvas to use as a view, optional - * @param [antialias=false] {Boolean} sets antialias (only applicable in webGL chrome at the moment) * @param [transparent=false] {Boolean} the transparency of the render view, default false + * @param [antialias=false] {Boolean} sets antialias (only applicable in webGL chrome at the moment) * */ -PIXI.autoDetectRenderer = function(width, height, view,antialias,transparent) +PIXI.autoDetectRenderer = function(width, height, view, transparent, antialias) { if(!width)width = 800; if(!height)height = 600;