this.a = a;\r
}\r
\r
+ public void add (float r, float g, float b, float a) {\r
+ this.r += r;\r
+ this.g += g;\r
+ this.b += b;\r
+ this.a += a;\r
+ clamp();\r
+ }\r
+\r
+ public void sub (float r, float g, float b, float a) {\r
+ this.r -= r;\r
+ this.g -= g;\r
+ this.b -= b;\r
+ this.a -= a;\r
+ clamp();\r
+ }\r
+\r
+ public void mul (float r, float g, float b, float a) {\r
+ this.r *= r;\r
+ this.g *= g;\r
+ this.b *= b;\r
+ this.a *= a;\r
+ clamp();\r
+ }\r
+\r
@Override\r
public boolean equals (Object o) {\r
if (this == o) return true;\r