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