Improve the ASCII color class
This commit is contained in:
parent
610f72bcc7
commit
b50ee59b31
|
@ -0,0 +1,18 @@
|
||||||
|
package com.anas.jcolorfulconsole.color;
|
||||||
|
|
||||||
|
import com.anas.jcolorfulconsole.ConsoleProperty;
|
||||||
|
|
||||||
|
public class ASCIIColor implements ConsoleProperty {
|
||||||
|
private final short code;
|
||||||
|
|
||||||
|
protected ASCIIColor(short code) {
|
||||||
|
this.code = code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static final ASCIIColor RESET = new ASCIIColor((short)0);
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public short getCode() {
|
||||||
|
return code;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue