Skip to content

cf_pixel_to_int_rgb

Category: graphics
GitHub: cute_color.h


Converts an RGB CF_Pixel to an integer.

uint32_t cf_pixel_to_int_rgb(CF_Pixel p)
Parameters Description
p The pixel.

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 0xFF or full-alpha.

cf_pixel_to_color
cf_pixel_to_int_rgba
cf_pixel_to_string