public class Ansi16 implements ConvertibleColor
| Modifier and Type | Class and Description |
|---|---|
static class |
Ansi16.Companion |
ConvertibleColor.DefaultImpls| Modifier and Type | Field and Description |
|---|---|
static Ansi16.Companion |
Companion |
| Constructor and Description |
|---|
Ansi16(int code) |
| Modifier and Type | Method and Description |
|---|---|
int |
component1() |
Ansi16 |
copy(int code) |
boolean |
equals(java.lang.Object p) |
int |
getCode() |
int |
hashCode() |
Ansi16 |
toAnsi16()
Convert this color to a 16-color ANSI code
|
Ansi256 |
toAnsi256()
Convert this color to a 256-color ANSI code
|
RGB |
toRGB()
Convert this color to Red-Green-Blue (using sRGB color space)
|
java.lang.String |
toString() |
public static Ansi16.Companion Companion
public RGB toRGB()
Convert this color to Red-Green-Blue (using sRGB color space)
public Ansi16 toAnsi16()
Convert this color to a 16-color ANSI code
public Ansi256 toAnsi256()
Convert this color to a 256-color ANSI code
public int getCode()
public int component1()
public Ansi16 copy(int code)
public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object p)