UvPaintPolicy class final

Immutable terminal color policy shared by non-ANSI renderers.

Palette entries are copied on construction. faintMix controls how much the effective foreground is mixed toward the background; it is deliberately a color operation rather than backend-specific alpha.

Constructors

UvPaintPolicy({UvRgb foreground = const UvRgb(204, 204, 204), UvRgb background = const UvRgb(0, 0, 0), List<UvRgb>? palette, double faintMix = 0.5})

Properties

background → UvRgb
final
faintMix → double
final
foreground → UvRgb
final
hashCode → int
The hash code for this object.
no setterinherited
palette → List<UvRgb>?
final
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
resolve(UvStyle style) → UvCellPaint
Resolves a style into the colors actually used to paint a cell.
resolveColor(UvColor? color, UvRgb fallback) → UvRgb
Resolves a UV color against fallback, including basic16 and indexed256.
toString() → String
A string representation of this object.
inherited

Operators

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