ParseCommandRecolor Class
Definition
Section titled “Definition”Recolors a glyph.
public sealed class ParseCommandRecolor : ParseCommandBaseInheritance object → ParseCommandBase
Constructors
Section titled “Constructors”ParseCommandRecolor(string)
Section titled “ParseCommandRecolor(string)”Creates a new instance of this command.
public ParseCommandRecolor(string parameters)Parameters
Section titled “Parameters”parameters string
The string to parse for parameters.
ParseCommandRecolor()
Section titled “ParseCommandRecolor()”Creates a new instance of this command.
public ParseCommandRecolor()Fields
Section titled “Fields”Default
Section titled “Default”Use the default foreground and background based on the CommandType.
public bool DefaultKeepRed
Section titled “KeepRed”Keeps the red channel of the existing color of the glyphs this command is applied to.
public bool KeepRedKeepGreen
Section titled “KeepGreen”Keeps the green channel of the existing color of the glyphs this command is applied to.
public bool KeepGreenKeepBlue
Section titled “KeepBlue”Keeps the blue channel of the existing color of the glyphs this command is applied to.
public bool KeepBlueKeepAlpha
Section titled “KeepAlpha”Keeps the alpha channel of the existing color of the glyphs this command is applied to.
public bool KeepAlphaProperties
Section titled “Properties”The current red value
public byte R { get; set; }The current green value
public byte G { get; set; }The current blue value
public byte B { get; set; }The current alpha value
public byte A { get; set; }Methods
Section titled “Methods”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.
public override void Build(ref ColoredGlyphAndEffect glyphState, ColoredGlyphAndEffect[] glyphString, int surfaceIndex, ICellSurface? surface, ref int stringIndex, ReadOnlySpan<char> processedString, ParseCommandStacks commandStack)Parameters
Section titled “Parameters”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.