added Color

This commit is contained in:
Dani The Skunk 2022-09-14 05:46:41 +02:00
parent d43771a4e6
commit 4fae56a220
1 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,35 @@
package com.danitheskunk.skunkworks;
public final class Color {
final int r, g, b, a;
public Color(int r, int g, int b) {
this.r = r;
this.g = g;
this.b = b;
this.a = 0xff;
}
public Color(int r, int g, int b, int a) {
this.r = r;
this.g = g;
this.b = b;
this.a = a;
}
public int getR() {
return r;
}
public int getG() {
return g;
}
public int getB() {
return b;
}
public int getA() {
return a;
}
}