class Color{ float r,g,b; Color(float v){ this.r = v; this.g = v; this.b = v; } Color(float r,float g, float b){ this.r = r; this.g = g; this.b = b; } color getColor(){ return color(255*r,255*g,255*b); } float getMax(){ return max(r, max(g,b) ); } Color set(float c){ this.r = c; this.g = c; this.b = c; return this; } Color set(float r,float g, float b){ this.r = r; this.g = g; this.b = b; return this; } Color set(Color c){ this.r = c.r; this.g = c.g; this.b = c.b; return this; } }