public final class AnsiColors extends 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(Color color)
Find the closest
ANSI color to the given AWT Color. |
static AnsiColor |
getClosest(Color color)
Deprecated.
since 2.2.0 in favor of
findClosest(Color) |
public AnsiColors(AnsiColors.BitDepth bitDepth)
AnsiColors instance with the specified bit depth.bitDepth - the required bit depthpublic AnsiElement findClosest(Color color)
ANSI color to the given AWT Color.color - the AWT color@Deprecated public static AnsiColor getClosest(Color color)
findClosest(Color)ANSI color to the given AWT Color.color - the color to findCopyright © 2020 Pivotal Software, Inc.. All rights reserved.