mirror of
https://github.com/wassname/phaser.git
synced 2026-08-13 12:30:11 +08:00
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:
+9
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user