Define Color.random() similar to Point.random().

This commit is contained in:
Jürg Lehni 2012-11-27 17:35:03 -08:00
parent 398ee1a338
commit 9ff39eb603

View file

@ -334,6 +334,10 @@ var Color = this.Color = Base.extend(new function() {
}, src);
}
return this.base(src);
},
random: function() {
return new RgbColor(Math.random(), Math.random(), Math.random());
}
}
};