function RGB(r,g,b){ this.r=r; this.g=g; this.b=b; }
RGB.prototype.mix = function(col, reflect){
	this.r=this.r*(1-reflect)+col.r*reflect;
	this.g=this.g*(1-reflect)+col.g*reflect;
	this.b=this.b*(1-reflect)+col.b*reflect;
}
RGB.prototype.shade = function(bright){ return new RGB(this.r*(bright*=bright<0?0:bright),this.g*bright,this.b*bright); }
