Package | Description |
---|---|
org.dromara.hutool.core.lang.ansi |
命令行终端中ANSI 转义序列相关封装,如ANSI颜色等
|
org.dromara.hutool.swing.img.color |
颜色处理相关工具类封装
|
Modifier and Type | Class and Description |
---|---|
class |
Ansi4BitBackgroundColor
ANSI背景颜色枚举
来自Spring Boot
|
class |
Ansi4BitColor
ANSI标准颜色
来自Spring Boot
|
class |
Ansi8BitColor
ANSI 8-bit前景或背景色(即8位编码,共256种颜色(2^8) )
0-7: 标准颜色(同ESC [ 30–37 m) 8-15: 高强度颜色(同ESC [ 90–97 m) 16-231(6 × 6 × 6 共 216色): 16 + 36 × r + 6 × g + b (0 ≤ r, g, b ≤ 5) 232-255: 从黑到白的24阶灰度色 来自Spring Boot |
class |
AnsiStyle
ANSI文本样式风格枚举
来自Spring Boot
|
Modifier and Type | Field and Description |
---|---|
protected Map<AnsiElement,LabColor> |
AnsiLabMapping.ansiLabMap |
Modifier and Type | Method and Description |
---|---|
AnsiElement |
AnsiLabMapping.lookupClosest(Color color)
查找与给定LabColor最接近的AnsiElement颜色
|
AnsiElement |
AnsiLabMapping.lookupClosest(LabColor color)
查找与给定LabColor最接近的AnsiElement颜色
|
static AnsiElement |
ColorUtil.toAnsiColor(Color color,
boolean is8Bit,
boolean isBackground)
AWT的
Color 颜色转换为ANSI颜色,由于取最接近颜色,故可能有色差 |
static AnsiElement |
ColorUtil.toAnsiColor(int rgb,
boolean is8Bit,
boolean isBackground)
AWT的
Color 颜色转换为ANSI颜色,由于取最接近颜色,故可能有色差 |
Copyright © 2025. All rights reserved.