cf_make_pixel_rgba¶
Category: graphics
GitHub: cute_color.h
Returns a CF_Pixel made from RGBA char inputs.
CF_Pixel cf_make_pixel_rgba(uint8_t r, uint8_t g, uint8_t b, uint8_t a) { CF_Pixel p; p.colors.r = r; p.colors.g = g; p.colors.b = b; p.colors.a = a; return p; }
| Parameters | Description |
|---|---|
r |
The red component from 0 to 255. |
g |
The green component from 0 to 255. |
b |
The blue component from 0 to 255. |
a |
The alpha component from 0 to 255. |
Related Pages¶
CF_Pixel
cf_make_pixel_rgb_f
cf_make_pixel_rgba_f
cf_make_pixel_rgb
cf_make_pixel_hex_string
cf_make_pixel_hex