Color class abstract Style

Abstract base class for terminal colors.

All color types implement this interface to produce ANSI escape sequences.

Colors in Artisanal are profile-aware. The ColorProfile determines how colors are rendered (ANSI 16, ANSI 256, or TrueColor).

Implementers

Constructors

Color()
const

Properties

dim Color
Returns a dimmed version of this color (if applicable).
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toAnsi(ColorProfile profile, {bool background = false, bool underline = false, bool hasDarkBackground = true}) String
Produces the ANSI escape sequence for this color.
toHex() String
Returns the hex representation of this color.
toString() String
A string representation of this object.
inherited

Operators

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