Added set function to Colour

This commit is contained in:
Chicken Bones committed 2013-07-31 13:28:35 +10:00
1 parent 57bcf384d1
commit a1433ba4d4
1 file changed
+8
+8
View File
@@ -136,4 +136,12 @@ public abstract class Colour
{
return (r & 0xFF) << 24 | (g & 0xFF) << 16 | (b & 0xFF) << 8 | (a & 0xFF);
}
public Colour set(Colour colour)
{
r = colour.r;
g = colour.g;
b = colour.b;
a = colour.a;
}
}