Skip to content

CF_Pixel

Category: graphics
GitHub: cute_color.h


4-byte value with 0-255 components, representing an RGBA (red green blue alpha) color.

Struct Members Description
uint8_t r The red component, from 0 to 255.
uint8_t g The green component, from 0 to 255.
uint8_t b The blue component, from 0 to 255.
uint8_t a The alpha component (transparency/opaqueness), from 0 to 255.
uint32_t val A 32-bit unsigned integer containing the packed-bytes for all four RGBA components.

CF_Color