Skip to content

cf_color_to_int_rgba

Category: graphics
GitHub: cute_color.h


Converts an RGB CF_Color to an integer.

uint32_t cf_color_to_int_rgba(CF_Color c)
Parameters Description
c The color.

Return Value

Returns an unsigned 32-bit integer of the packed pixel components. The first byte is the red component, the second byte is the green component, the third byte is the blue component, the fourth byte is the alpha component.

cf_color_to_pixel
cf_color_to_int_rgb
cf_color_to_string