public final class AnsiColors
extends java.lang.Object
AnsiColor in the context of AWT Colors.| Modifier and Type | Class and Description |
|---|---|
static class |
AnsiColors.BitDepth
Bit depths supported by this class.
|
| Constructor and Description |
|---|
AnsiColors(AnsiColors.BitDepth bitDepth)
Create a new
AnsiColors instance with the specified bit depth. |
| Modifier and Type | Method and Description |
|---|---|
AnsiElement |
findClosest(java.awt.Color color)
Find the closest
ANSI color to the given AWT Color. |
public AnsiColors(AnsiColors.BitDepth bitDepth)
AnsiColors instance with the specified bit depth.bitDepth - the required bit depthpublic AnsiElement findClosest(java.awt.Color color)
ANSI color to the given AWT Color.color - the AWT color