From b50ee59b317ea560b6d3567f126225b0d1847bf5 Mon Sep 17 00:00:00 2001 From: Anas Elgarhy Date: Thu, 24 Mar 2022 18:55:04 +0200 Subject: [PATCH] Improve the ASCII color class --- .../jcolorfulconsole/color/ASCIIColor.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/main/java/com/anas/jcolorfulconsole/color/ASCIIColor.java diff --git a/src/main/java/com/anas/jcolorfulconsole/color/ASCIIColor.java b/src/main/java/com/anas/jcolorfulconsole/color/ASCIIColor.java new file mode 100644 index 0000000..26d6bd8 --- /dev/null +++ b/src/main/java/com/anas/jcolorfulconsole/color/ASCIIColor.java @@ -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; + } +}