AnsiColor class

AnsiColor

ANSI colors are a set of standardized color codes that can be used in text-based interfaces to add color and emphasis to text.

The ANSI color codes are typically supported by terminal emulators and command-line interfaces, and can be used to change the foreground and background colors of text.

The ANSI color codes consist of a special sequence of characters that starts with the escape character (ASCII code 27), followed by the characters '[', the color code, and the letter 'm'.

The color code can be a number between 0 and 255, and is used to specify a specific color in the terminal's color palette.

https://en.wikipedia.org/wiki/X11_color_names https://tintin.mudhalla.net/info/256color/ https://www.ditig.com/256-colors-cheat-sheet

Constructors

AnsiColor.fromRgb(Rgb rgb)
factory

Properties

background String
Background 8 bit 256 color code
no setter
backgroundRgb String
Background 24 bit rgb color code
no setter
foreground String
Foreground 8 bit 256 color code
no setter
foregroundRgb String
Foreground 24 bit rgb color code
no setter
hashCode int
The hash code for this object.
no setterinherited
hex String
final
hsl Hsl?
final
lightness int?
no setter
name String
final
rgb Rgb?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value int
8-bit color value
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

aqua → const AnsiColor
System aqua color
aquamarine1 → const AnsiColor
aquamarine2 → const AnsiColor
aquamarine3 → const AnsiColor
black → const AnsiColor
System black color
blue → const AnsiColor
System blue color
blue1 → const AnsiColor
blue2 → const AnsiColor
blue3 → const AnsiColor
blueViolet → const AnsiColor
cadetBlue → const AnsiColor
cadetBlue2 → const AnsiColor
chartreuse1 → const AnsiColor
chartreuse2 → const AnsiColor
chartreuse3 → const AnsiColor
chartreuse4 → const AnsiColor
chartreuse5 → const AnsiColor
chartreuse6 → const AnsiColor
cornflowerBlue → const AnsiColor
cornsilk1 → const AnsiColor
cyan1 → const AnsiColor
cyan2 → const AnsiColor
cyan3 → const AnsiColor
darkBlue → const AnsiColor
darkCyan → const AnsiColor
darkGoldenrod → const AnsiColor
darkGreen → const AnsiColor
darkKhaki → const AnsiColor
darkMagenta → const AnsiColor
darkMagenta2 → const AnsiColor
darkOliveGreen1 → const AnsiColor
darkOliveGreen2 → const AnsiColor
darkOliveGreen3 → const AnsiColor
darkOliveGreen4 → const AnsiColor
darkOliveGreen5 → const AnsiColor
darkOliveGreen6 → const AnsiColor
darkOrange → const AnsiColor
darkOrange2 → const AnsiColor
darkOrange3 → const AnsiColor
darkRed → const AnsiColor
darkRed2 → const AnsiColor
darkSeaGreen → const AnsiColor
darkSeaGreen1 → const AnsiColor
darkSeaGreen2 → const AnsiColor
darkSeaGreen3 → const AnsiColor
darkSeaGreen4 → const AnsiColor
darkSeaGreen5 → const AnsiColor
darkSeaGreen6 → const AnsiColor
darkSeaGreen7 → const AnsiColor
darkSeaGreen8 → const AnsiColor
darkSlateGray1 → const AnsiColor
darkSlateGray2 → const AnsiColor
darkSlateGray3 → const AnsiColor
darkTurquoise → const AnsiColor
darkViolet → const AnsiColor
darkViolet2 → const AnsiColor
deepPink1 → const AnsiColor
deepPink2 → const AnsiColor
deepPink3 → const AnsiColor
deepPink4 → const AnsiColor
deepPink5 → const AnsiColor
deepPink6 → const AnsiColor
deepPink7 → const AnsiColor
deepPink8 → const AnsiColor
deepSkyBlue1 → const AnsiColor
deepSkyBlue2 → const AnsiColor
deepSkyBlue3 → const AnsiColor
deepSkyBlue4 → const AnsiColor
deepSkyBlue5 → const AnsiColor
deepSkyBlue6 → const AnsiColor
deepSkyBlue7 → const AnsiColor
dodgerBlue1 → const AnsiColor
dodgerBlue2 → const AnsiColor
dodgerBlue3 → const AnsiColor
fuchsia → const AnsiColor
System fuchsia color
gold1 → const AnsiColor
gold2 → const AnsiColor
gold3 → const AnsiColor
green → const AnsiColor
System green color
green1 → const AnsiColor
green2 → const AnsiColor
green3 → const AnsiColor
green4 → const AnsiColor
greenYellow → const AnsiColor
grey → const AnsiColor
System grey color
grey0 → const AnsiColor
grey3 → const AnsiColor
grey7 → const AnsiColor
grey11 → const AnsiColor
grey15 → const AnsiColor
grey19 → const AnsiColor
grey23 → const AnsiColor
grey27 → const AnsiColor
grey30 → const AnsiColor
grey35 → const AnsiColor
grey37 → const AnsiColor
grey39 → const AnsiColor
grey42 → const AnsiColor
grey46 → const AnsiColor
grey50 → const AnsiColor
grey53 → const AnsiColor
grey54 → const AnsiColor
grey58 → const AnsiColor
grey62 → const AnsiColor
grey63 → const AnsiColor
grey66 → const AnsiColor
grey69 → const AnsiColor
grey70 → const AnsiColor
grey74 → const AnsiColor
grey78 → const AnsiColor
grey82 → const AnsiColor
grey84 → const AnsiColor
grey85 → const AnsiColor
grey89 → const AnsiColor
grey93 → const AnsiColor
grey100 → const AnsiColor
honeydew2 → const AnsiColor
hotPink → const AnsiColor
hotPink1 → const AnsiColor
hotPink2 → const AnsiColor
hotPink3 → const AnsiColor
hotPink4 → const AnsiColor
indianRed → const AnsiColor
indianRed1 → const AnsiColor
indianRed2 → const AnsiColor
indianRed4 → const AnsiColor
khaki1 → const AnsiColor
khaki3 → const AnsiColor
lightCoral → const AnsiColor
lightCyan1 → const AnsiColor
lightCyan3 → const AnsiColor
lightGoldenrod1 → const AnsiColor
lightGoldenrod2 → const AnsiColor
lightGoldenrod3 → const AnsiColor
lightGoldenrod4 → const AnsiColor
lightGoldenrod5 → const AnsiColor
lightGreen → const AnsiColor
lightGreen2 → const AnsiColor
lightPink1 → const AnsiColor
lightPink3 → const AnsiColor
lightPink4 → const AnsiColor
lightSalmon1 → const AnsiColor
lightSalmon2 → const AnsiColor
lightSalmon3 → const AnsiColor
lightSeaGreen → const AnsiColor
lightSkyBlue1 → const AnsiColor
lightSkyBlue2 → const AnsiColor
lightSkyBlue3 → const AnsiColor
lightSlateBlue → const AnsiColor
lightSlateGrey → const AnsiColor
lightSteelBlue → const AnsiColor
lightSteelBlue1 → const AnsiColor
lightSteelBlue3 → const AnsiColor
lightYellow3 → const AnsiColor
lime → const AnsiColor
System lime color
magenta → const AnsiColor
System magenta color
magenta1 → const AnsiColor
magenta2 → const AnsiColor
magenta3 → const AnsiColor
magenta4 → const AnsiColor
magenta5 → const AnsiColor
magenta6 → const AnsiColor
maroon → const AnsiColor
System maroon color
mediumOrchid → const AnsiColor
mediumOrchid1 → const AnsiColor
mediumOrchid2 → const AnsiColor
mediumOrchid3 → const AnsiColor
mediumPurple → const AnsiColor
mediumPurple1 → const AnsiColor
mediumPurple2 → const AnsiColor
mediumPurple3 → const AnsiColor
mediumPurple4 → const AnsiColor
mediumPurple5 → const AnsiColor
mediumPurple6 → const AnsiColor
mediumSpringGreen → const AnsiColor
mediumTurquoise → const AnsiColor
mediumVioletRed → const AnsiColor
mistyRose1 → const AnsiColor
mistyRose3 → const AnsiColor
System navy color
none → const AnsiColor
olive → const AnsiColor
System olive color
orange1 → const AnsiColor
orange2 → const AnsiColor
orange3 → const AnsiColor
orange4 → const AnsiColor
orangeRed1 → const AnsiColor
orchid → const AnsiColor
orchid1 → const AnsiColor
orchid2 → const AnsiColor
paleGreen1 → const AnsiColor
paleGreen2 → const AnsiColor
paleGreen3 → const AnsiColor
paleGreen4 → const AnsiColor
paleTurquoise1 → const AnsiColor
paleTurquoise4 → const AnsiColor
paleVioletRed1 → const AnsiColor
pink1 → const AnsiColor
pink3 → const AnsiColor
plum1 → const AnsiColor
plum2 → const AnsiColor
plum3 → const AnsiColor
plum4 → const AnsiColor
purple → const AnsiColor
purple2 → const AnsiColor
purple3 → const AnsiColor
purple4 → const AnsiColor
purple5 → const AnsiColor
red → const AnsiColor
System red color
red1 → const AnsiColor
red2 → const AnsiColor
red3 → const AnsiColor
rosyBrown → const AnsiColor
royalBlue1 → const AnsiColor
salmon1 → const AnsiColor
sandyBrown → const AnsiColor
seaGreen1 → const AnsiColor
seaGreen2 → const AnsiColor
seaGreen3 → const AnsiColor
seaGreen4 → const AnsiColor
silver → const AnsiColor
System silver color
skyBlue1 → const AnsiColor
skyBlue2 → const AnsiColor
skyBlue3 → const AnsiColor
slateBlue1 → const AnsiColor
slateBlue2 → const AnsiColor
slateBlue3 → const AnsiColor
springGreen1 → const AnsiColor
springGreen2 → const AnsiColor
springGreen3 → const AnsiColor
springGreen4 → const AnsiColor
springGreen5 → const AnsiColor
springGreen6 → const AnsiColor
steelBlue → const AnsiColor
steelBlue1 → const AnsiColor
steelBlue3 → const AnsiColor
steelBlue4 → const AnsiColor
tan → const AnsiColor
teal → const AnsiColor
System teal color
thistle1 → const AnsiColor
thistle3 → const AnsiColor
turquoise2 → const AnsiColor
turquoise4 → const AnsiColor
violet → const AnsiColor
wheat1 → const AnsiColor
wheat4 → const AnsiColor
white → const AnsiColor
System white color
yellow → const AnsiColor
System yellow color
yellow1 → const AnsiColor
yellow2 → const AnsiColor
yellow3 → const AnsiColor
yellow4 → const AnsiColor
yellow5 → const AnsiColor
yellow6 → const AnsiColor