Skip to content

cf_text_effect_get_color

Category: text
GitHub: cute_draw.h


Returns the text parameter as a color.

CF_Color cf_text_effect_get_color(const CF_TextEffect* fx, const char* key, CF_Color default_val);
Parameters Description
fx The text effect state.
key The name of the text code parameter
default_val A default value for the text code parameter if doesn't exist in the text.

Return Value

Returns the value of the text code parameter.

CF_TextEffect
CF_TextEffectFn
cf_text_effect_register
cf_text_effect_get_number
cf_text_effect_get_string