cf_div_pixel¶
Category: graphics
GitHub: cute_color.h
Divides a CF_Pixel by an unsigned 8-bit number.
CF_Pixel cf_div_pixel(CF_Pixel a, uint8_t s) { return cf_make_pixel_rgba_f(cf_div_un8(a.colors.r, s), cf_div_un8(a.colors.g, s), cf_div_un8(a.colors.b, s), cf_div_un8(a.colors.a, s)); }
| Parameters | Description |
|---|---|
a |
The pixel. |
b |
An 8-bit value. |
Related Pages¶
cf_mul_pixel
cf_pixel_premultiply
cf_add_pixel
cf_sub_pixel
cf_pixel_lerp