mirror of
https://github.com/GTNewHorizons/CodeChickenCore.git
synced 2026-11-11 15:57:42 +00:00
Added set function to Colour
This commit is contained in:
1 parent
57bcf384d1
commit
a1433ba4d4
1 file changed
+8
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user