Skip to content

ParseCommandRecolor Class

Recolors a glyph.

C#
public sealed class ParseCommandRecolor : ParseCommandBase

Inheritance objectParseCommandBase

Creates a new instance of this command.

C#
public ParseCommandRecolor(string parameters)

parameters string
The string to parse for parameters.

Creates a new instance of this command.

C#
public ParseCommandRecolor()

Use the default foreground and background based on the CommandType.

C#
public bool Default

Keeps the red channel of the existing color of the glyphs this command is applied to.

C#
public bool KeepRed

Keeps the green channel of the existing color of the glyphs this command is applied to.

C#
public bool KeepGreen

Keeps the blue channel of the existing color of the glyphs this command is applied to.

C#
public bool KeepBlue

Keeps the alpha channel of the existing color of the glyphs this command is applied to.

C#
public bool KeepAlpha

The current red value

C#
public byte R { get; set; }

The current green value

C#
public byte G { get; set; }

The current blue value

C#
public byte B { get; set; }

The current alpha value

C#
public byte A { get; set; }

Build(ref ColoredGlyphAndEffect, ColoredGlyphAndEffect[], int, ICellSurface?, ref int, ReadOnlySpan<char>, ParseCommandStacks)

Section titled “Build(ref ColoredGlyphAndEffect, ColoredGlyphAndEffect[], int, ICellSurface?, ref int, ReadOnlySpan<char>, ParseCommandStacks)”

Builds a glyph.

C#
public override void Build(ref ColoredGlyphAndEffect glyphState, ColoredGlyphAndEffect[] glyphString, int surfaceIndex, ICellSurface? surface, ref int stringIndex, ReadOnlySpan<char> processedString, ParseCommandStacks commandStack)

glyphState ColoredGlyphAndEffect
The current glyph being built.

glyphString ColoredGlyphAndEffect[]
The current string of glyphs that has been processed until now.

surfaceIndex int
Where on the surface this glyph will appear.

surface ICellSurface
The surface associated with the glyph.

stringIndex int
Where in the original string this glyph is from.

processedString ReadOnlySpan<char>
The entire string being processed.

commandStack ParseCommandStacks
The state of commands.