Improve the ASCII color class

This commit is contained in:
Anas Elgarhy 2022-03-24 18:55:04 +02:00
parent 610f72bcc7
commit b50ee59b31
1 changed files with 18 additions and 0 deletions

View File

@ -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;
}
}