mirror of
https://github.com/wassname/phaser.git
synced 2026-07-17 01:30:32 +08:00
Tidying up source code for release. Also refactored World to use a Group instance, rather tha duplicate functions.
This commit is contained in:
+2
-2
@@ -189,10 +189,10 @@ Phaser.Color = {
|
||||
if (typeof max === "undefined") { max = 255; }
|
||||
if (typeof alpha === "undefined") { alpha = 255; }
|
||||
// Sanity checks
|
||||
if(max > 255) {
|
||||
if (max > 255) {
|
||||
return Phaser.Color.getColor(255, 255, 255);
|
||||
}
|
||||
if(min > max) {
|
||||
if (min > max) {
|
||||
return Phaser.Color.getColor(255, 255, 255);
|
||||
}
|
||||
var red = min + Math.round(Math.random() * (max - min));
|
||||
|
||||
Reference in New Issue
Block a user