cf_clamp_color01¶
Category: graphics
GitHub: cute_color.h
Returns the component-wise clamp of a between 0.0f and 1.0f.
CF_Color cf_clamp_color01(CF_Color a) { return cf_make_color_rgba_f(cf_clamp(a.r, 0.0f, 1.0f), cf_clamp(a.g, 0.0f, 1.0f), cf_clamp(a.b, 0.0f, 1.0f), cf_clamp(a.a, 0.0f, 1.0f)); }
| Parameters | Description |
|---|---|
a |
The color. |
Related Pages¶
CF_Color
cf_mul_color
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_color_premultiply
cf_color_lerp