You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/boot/Config.js
+8-7Lines changed: 8 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -100,7 +100,6 @@ var ValueToColor = require('../display/color/ValueToColor');
100
100
*
101
101
* @property {boolean} [antialias=true] - When set to `true`, WebGL uses linear interpolation to draw scaled or rotated textures, giving a smooth appearance. When set to `false`, WebGL uses nearest-neighbor interpolation, giving a crisper appearance. `false` also disables antialiasing of the game canvas itself, if the browser supports it, when the game canvas is scaled.
102
102
* @property {boolean} [pixelArt=false] - Sets `antialias` and `roundPixels` to true. This is the best setting for pixel-art games.
103
-
* @property {boolean} [autoResize=true] - Automatically resize the Game Canvas if you resize the renderer.
104
103
* @property {boolean} [roundPixels=false] - Draw texture-based Game Objects at only whole-integer positions. Game Objects without textures, like Graphics, ignore this property.
105
104
* @property {boolean} [transparent=false] - Whether the game canvas will be transparent.
106
105
* @property {boolean} [clearBeforeRender=true] - Whether the game canvas will be cleared between each rendering frame.
@@ -124,6 +123,7 @@ var ValueToColor = require('../display/color/ValueToColor');
124
123
* @property {integer} [minHeight] - The minimum height the canvas can be scaled down to.
125
124
* @property {integer} [maxWidth] - The maximum width the canvas can be scaled up to.
126
125
* @property {integer} [maxHeight] - The maximum height the canvas can be scaled up to.
126
+
* @property {boolean} [autoRound=false] - Automatically round the display and style sizes of the canvas. This can help with performance in lower-powered devices.
* @const {integer} Phaser.Boot.Config#autoRound - Automatically round the display and style sizes of the canvas. This can help with performance in lower-powered devices.
* @const {boolean} Phaser.Boot.Config#antialias - When set to `true`, WebGL uses linear interpolation to draw scaled or rotated textures, giving a smooth appearance. When set to `false`, WebGL uses nearest-neighbor interpolation, giving a crisper appearance. `false` also disables antialiasing of the game canvas itself, if the browser supports it, when the game canvas is scaled.
528
529
*/
@@ -536,7 +537,7 @@ var Config = new Class({
536
537
/**
537
538
* @const {boolean} Phaser.Boot.Config#pixelArt - Prevent pixel art from becoming blurred when scaled. It will remain crisp (tells the WebGL renderer to automatically create textures using a linear filter mode).
0 commit comments