Class RainbowTextWriterColor
Console text writer with rainbow color as foreground color
Inheritance
Namespace: Terminaux.Writer.FancyWriters
Assembly: Terminaux.dll
Syntax
[Obsolete("This is considered a legacy method of writing this fancy text and will be removed in a future version of Terminaux. Please use its cyclic writer equivalent.")]
public static class RainbowTextWriterColor
Methods
| Edit this page View SourceRender(string, bool, params object[])
Outputs the text into the terminal prompt.
Declaration
public static string Render(string Text, bool Line, params object[] vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | A sentence that will be written to the terminal prompt. Supports {0}, {1}, ... |
bool | Line | Whether to print a new line or not |
object[] | vars | Variables to format the message before it's written. |
Returns
Type | Description |
---|---|
string |
Render(string, params object[])
Outputs the text into the terminal prompt with rainbow bands as foregound colors.
Declaration
public static string Render(string Text, params object[] vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | A sentence that will be written to the terminal prompt. Supports {0}, {1}, ... |
object[] | vars | Variables to format the message before it's written. |
Returns
Type | Description |
---|---|
string |
RenderColor(string, bool, Color, params object[])
Outputs the text into the terminal prompt with custom color support.
Declaration
public static string RenderColor(string Text, bool Line, Color backgroundColor, params object[] vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | A sentence that will be written to the terminal prompt. Supports {0}, {1}, ... |
bool | Line | Whether to print a new line or not |
Color | backgroundColor | A background color that will be changed to. |
object[] | vars | Variables to format the message before it's written. |
Returns
Type | Description |
---|---|
string |
RenderColor(string, Color, params object[])
Outputs the text into the terminal prompt with custom color support.
Declaration
public static string RenderColor(string Text, Color backgroundColor, params object[] vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | A sentence that will be written to the terminal prompt. Supports {0}, {1}, ... |
Color | backgroundColor | A background color that will be changed to. |
object[] | vars | Variables to format the message before it's written. |
Returns
Type | Description |
---|---|
string |
Write(string, bool, params object[])
Outputs the text into the terminal prompt.
Declaration
public static void Write(string Text, bool Line, params object[] vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | A sentence that will be written to the terminal prompt. Supports {0}, {1}, ... |
bool | Line | Whether to print a new line or not |
object[] | vars | Variables to format the message before it's written. |
Write(string, params object[])
Outputs the text into the terminal prompt with rainbow bands as foregound colors.
Declaration
public static void Write(string Text, params object[] vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | A sentence that will be written to the terminal prompt. Supports {0}, {1}, ... |
object[] | vars | Variables to format the message before it's written. |
WriteColor(string, bool, Color, params object[])
Outputs the text into the terminal prompt with custom color support.
Declaration
public static void WriteColor(string Text, bool Line, Color backgroundColor, params object[] vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | A sentence that will be written to the terminal prompt. Supports {0}, {1}, ... |
bool | Line | Whether to print a new line or not |
Color | backgroundColor | A background color that will be changed to. |
object[] | vars | Variables to format the message before it's written. |
WriteColor(string, Color, params object[])
Outputs the text into the terminal prompt with custom color support.
Declaration
public static void WriteColor(string Text, Color backgroundColor, params object[] vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | A sentence that will be written to the terminal prompt. Supports {0}, {1}, ... |
Color | backgroundColor | A background color that will be changed to. |
object[] | vars | Variables to format the message before it's written. |