cf_sub_pixel¶
Category: graphics
GitHub: cute_color.h
Subtracts one CF_Pixel from another.
CF_Pixel cf_sub_pixel(CF_Pixel a, CF_Pixel b) { return cf_make_pixel_rgba(cf_sub_un8(a.colors.r, b.colors.r), cf_sub_un8(a.colors.g, b.colors.g), cf_sub_un8(a.colors.b, b.colors.b), cf_sub_un8(a.colors.a, b.colors.a)); }
| Parameters | Description |
|---|---|
a |
The first pixel. |
b |
The second pixel. |
Related Pages¶
cf_mul_pixel
cf_div_pixel
cf_add_pixel
cf_pixel_premultiply
cf_pixel_lerp