ColorMutator class final
A mathematical mutator for 24-bit TrueColor and Color.ansi cells.
Constructors
- ColorMutator(double scalar, {Color? barrierColor, TerminalColorTheme palette = TerminalColorTheme.legacyVga})
-
Creates a ColorMutator with the given
scalar.const
Properties
- barrierColor → Color?
-
Optional backdrop color to blend toward instead of
#000000.final - hashCode → int
-
The hash code for this object.
no setterinherited
- palette → TerminalColorTheme
-
Palette used when resolving
Color.ansiindices before dimming.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scalar → double
-
The scalar to multiply each RGB channel by (or interpolation weight toward barrierColor).
final
Methods
-
dim(
Color color) → Color -
Dims the given
colorby multiplying its RGB channels by scalar. -
dimPacked(
int argb) → int - Dims the raw packed 32-bit integer color without allocating Color objects.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited