Modifier and Type | Method and Description |
---|---|
static Color |
getAWTColor(int index)
Returns the supplied color index as a AWT Color object
|
static Color |
getAWTColor(int index,
TerminalPalette terminalPalette)
Returns the supplied color index as a AWT Color object
|
static int |
getClosestColor(int red,
int green,
int blue)
Given a RGB value, finds the closest color from the 8-bit palette.
|
public static int getClosestColor(int red, int green, int blue)
red
- Red component value (0-255)green
- Green component value (0-255)blue
- Blue component value (0-255)public static Color getAWTColor(int index)
index
- Index of the color (0-255)public static Color getAWTColor(int index, TerminalPalette terminalPalette)
index
- Index of the color (0-255)terminalPalette
- Palette to use for the initial 16 color values (index 0-15)Copyright © 2015. All Rights Reserved.