public class TrueColor extends Object implements AnsiColorProvider
| Constructor and Description |
|---|
TrueColor(int red,
int green,
int blue) |
TrueColor(String hex) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
String |
getAnsiBackgroundControlCode()
Gets the ANSI control code for setting the background colour
|
String |
getAnsiForegroundControlCode()
Gets the ANSI control code for setting the foreground colour
|
String |
toHex() |
String |
toString() |
boolean |
usesExtendedColors()
Gets whether extended colours are used as this will affect the ANSI reset
sequence that needs to be used
|
public TrueColor(int red,
int green,
int blue)
public TrueColor(String hex)
public String getAnsiForegroundControlCode()
AnsiColorProvidergetAnsiForegroundControlCode in interface AnsiColorProviderpublic String getAnsiBackgroundControlCode()
AnsiColorProvidergetAnsiBackgroundControlCode in interface AnsiColorProviderpublic boolean usesExtendedColors()
AnsiColorProviderusesExtendedColors in interface AnsiColorProviderpublic String toHex()
Copyright © 2012–2022. All rights reserved.