diff --git a/src/pixi/Stage.js b/src/pixi/Stage.js index ac5102b..c80d47c 100644 --- a/src/pixi/Stage.js +++ b/src/pixi/Stage.js @@ -68,7 +68,9 @@ { this.backgroundColor = backgroundColor || 0x000000; this.backgroundColorSplit = HEXtoRGB(this.backgroundColor); - this.backgroundColorString = "#" + this.backgroundColor.toString(16); + var hex = this.backgroundColor.toString(16); + hex = "000000".substr(0, 6 - hex.length) + hex; + this.backgroundColorString = "#" + hex; } /**