Skip to content

cf_mul_color

Category: graphics
GitHub: cute_color.h


Multiplies each component of a color by s.

CF_Color cf_mul_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 multiply with.

Return Value

Returns the multiplied color.

CF_Color
cf_color_premultiply
cf_mul_color2
cf_div_color
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