AsciiInk class abstract
A colour the terminal can paint with, however it was named.
The two ways of naming one — a slot in the 256-colour table
(AsciiColour) and a 24-bit triple (AsciiColourRgb) — differ only in the
middle of the code. CSI 38 ; and SGR sit around it either way, so that
middle is all a subclass has to supply.
An ink is not a printable code by itself: pick fg, bg or underline and you get the string to print.
- Implementers
Constructors
- AsciiInk()
-
const
Properties
- bg → String
-
Paints the background behind the text. Cleared by RESET_BG or by
reset.
no setter
- fg → String
-
Paints the text this colour. Cleared by RESET_FG or by reset.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- parameters → String
-
The colour half of the code, between the
38/48/58and them.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- underline → String
-
Paints the underline this colour, leaving the text its own colour.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
opacity(
double amount, {AsciiInk over = const AsciiColourRgb(0, 0, 0)}) → AsciiColourRgb -
This colour at
amountstrength overover— the fade ANSI has no code for, worked out in advance. -
toRgb(
) → AsciiColourRgb - This colour as three channels, so two of them can be mixed.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited