java.lang.Object
com.github.rvesse.airline.io.colors.TrueColor
- All Implemented Interfaces:
AnsiColorProvider
True (24 bit) colours i.e. 16 million possible colours
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TrueColor
public TrueColor(int red, int green, int blue) -
TrueColor
-
-
Method Details
-
getAnsiForegroundControlCode
Description copied from interface:AnsiColorProviderGets the ANSI control code for setting the foreground colour- Specified by:
getAnsiForegroundControlCodein interfaceAnsiColorProvider- Returns:
- Foreground control code
-
getAnsiBackgroundControlCode
Description copied from interface:AnsiColorProviderGets the ANSI control code for setting the background colour- Specified by:
getAnsiBackgroundControlCodein interfaceAnsiColorProvider- Returns:
- Background control code
-
usesExtendedColors
public boolean usesExtendedColors()Description copied from interface:AnsiColorProviderGets whether extended colours are used as this will affect the ANSI reset sequence that needs to be used- Specified by:
usesExtendedColorsin interfaceAnsiColorProvider- Returns:
- True if extended colours are used, false otherwise
-
toString
-
toHex
-
equals
-