Downloads | 83 |
---|---|
Updated | 7 months ago |
Released | 7 months ago |
Created | 7 months ago |
Numeric ID | 555 |
Min. Openplanet | 1.26.0 |
The "Colorizer - Dynamic Text Coloring Utility" is a plugin made for adding a gradiant color effect to sme text within an application.
NOTE: If you want to use this functionality without having to bother with exports and such, the opensource Unilicenced code can be found here: st-AR-gazer/TEMPLATE/src/Conditions/Colors.as
NOTE: For end users there exists a better solution, colorizer.xjk.yt, this can also be used without TM open.
The plugin provides several functions for external use:
Colorize(const string &in str, const array<string> &in colors, _col::GradientMode type, bool useEscapeCharacters, bool flipped, bool _verbose)
str
: The string to be colorized.colors
: An array of color codes, e.g., {"0033CC", "33FFFF", "CA493A"}
.type
: Gradient mode to apply, e.g., _col::GradientMode::linear
.useEscapeCharacters
: Whether to include escape characters in the output.flipped
: Whether to reverse the color gradient._verbose
: Enables detailed logging for debugging purposes.
Note: The _verbose
flag will not work without the custom logging function it uses, set it to false.string
Colorize("Hello, world!", {"0033CC", "33FFFF", "CA493A"}, _col::GradientMode::linear)
Colorize(const array<string> &in strs, const array<string> &in colors, _col::GradientMode type, bool useEscapeCharacters, bool flipped, bool _verbose)
strs
: Array of strings to colorize.colors
: An array of color codes.type
: Gradient mode to apply.useEscapeCharacters
: Whether to include escape characters in the output.flipped
: Whether to reverse the color gradient._verbose
: Enables detailed logging for debugging purposes.
Note: The _verbose
flag will not work without the custom logging function it uses, set it to false.string
Colorize({"First", "Second"}, {"0033CC", "33FFFF"}, _col::GradientMode::linear, true, true, true)
HideColorizerUI(bool t_neo)
t_neo
: Boolean to control UI visibility, true hides the UI, false shows it.void
linear
, exponential
, and more exotic types like elastic
and bounce
, providing versatile visual effects.