Added in the Color Utils and removed the less important functions into ColorHarmony plugin. Updated Stage so backgroundColor can be a string or integer now.

This commit is contained in:
Richard Davey
2013-09-10 14:00:46 +01:00
parent 15fe5ed6c8
commit 5da0e42be4
41 changed files with 565 additions and 236 deletions
+9 -1
View File
@@ -92,8 +92,16 @@ Object.defineProperty(Phaser.Stage.prototype, "backgroundColor", {
},
set: function (color) {
this._stage.setBackgroundColor(color);
this._backgroundColor = color;
if (typeof color === 'string')
{
color = Phaser.Color.hexToRGB(color);
}
this._stage.setBackgroundColor(color);
},
enumerable: true,