cf_pixel_to_string¶
Category: graphics
GitHub: cute_color.h
Converts a CF_Pixel to a dynamic string. Free it with sfree when done.
char* cf_pixel_to_string(CF_Pixel p) { char* s = NULL; return shex(s, cf_pixel_to_int_rgba(p)); } // Call `sfree` when done.
| Parameters | Description |
|---|---|
p |
The pixel. |
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.