Skip to content

cf_color_to_string

Category: graphics
GitHub: cute_color.h


Converts a CF_Color to a dynamic string. Free it with sfree when done.

char* cf_color_to_string(CF_Color c) { char* s = NULL; return shex(s, cf_color_to_int_rgba(c)); }
Parameters Description
c The color.

Remarks

Since this function dynamically allocates a Cute Framework C-string, it must be free'd up with sfree when you're done with it.

cf_color_to_pixel
cf_color_to_int_rgb
cf_color_to_int_rgba