The "vngen_text_modify_style" Function
Syntax#
| Argument | Type | Description | 
|---|---|---|
| id | real/string | The ID of the text to modify (or keyword allfor all text) | 
| col1 | color/macro | The text top-left gradient color, where c_whiteis default (or keywordpreviousfor no change, or keywordinheritfor saved style) | 
| col2 | color/macro | The text top-right gradient color, where c_whiteis default (or keywordpreviousfor no change, or keywordinheritfor saved style) | 
| col3 | color/macro | The text bottom-right gradient color, where c_whiteis default (or keywordpreviousfor no change, or keywordinheritfor saved style) | 
| col4 | color/macro | The text bottom-left gradient color, where c_whiteis default (or keywordpreviousfor no change, or keywordinheritfor saved style) | 
| shadow | color/macro | The text shadow color, where 'none' is default (or keyword previousfor no change, keywordinheritfor saved style, or 'none' for none) | 
| outline | color/macro | The text outline color, where 'none' is default (or keyword previousfor no change, keywordinheritfor saved style, or 'none' for none) | 
| alpha | real (0-1) | The alpha transparency value, where 1 is default and 0 is fully transparent | 
| duration | real | Sets the length of the modification transition, in seconds | 
| [ease] | integer/macro | Optional: Sets the ease mode to perform the transition in | 
Description#
Applies a four-color gradient and transparency modifications to the input entity ID. Color values can be input using GameMaker Studio's built-in color constants or functions like VNgen's make_color_hex_to_rgb.
All modifications made with this script are permanent and will persist until another modification is performed. This script cannot be performed simultaneously with other modification actions operating on the same entity ID.
Unlike other entities, color modifications applied to text are applied to each individual character in the string rather than to the string as a whole. The exception to this is animations, which are applied as normal.
See Macros & Keywords for a list of available style modes and ease modes.

 X1
X1