Skip to content

cf_div_color

Category: graphics
GitHub: cute_color.h


Divides each component of a color by s.

CF_Color cf_div_color(CF_Color a, float s) { return cf_make_color_rgba_f(a.r/s, a.g/s, a.b/s, a.a/s); }
Parameters Description
a The color.
s A value to divide with.

Return Value

Returns the divided color.

CF_Color
cf_mul_color
cf_mul_color2
cf_color_premultiply
cf_add_color
cf_sub_color
cf_abs_color
cf_fract_color
cf_splat_color
cf_mod_color
cf_clamp_color
cf_clamp_color01
cf_color_lerp