Skip to content

cf_make_color_rgb_f

Category: graphics
GitHub: cute_color.h


Returns a CF_Color from RGB float inputs.

CF_Color cf_make_color_rgb_f(float r, float g, float b) { CF_Color color; color.r = r; color.g = g; color.b = b; color.a = 1.0f; return color; }
Parameters Description
r The red component from 0.0f to 1.0f.
g The green component from 0.0f to 1.0f.
b The blue component from 0.0f to 1.0f.

Remarks

The alpha component is set to 1.0f;

CF_Color
cf_make_color_hex_string
cf_make_color_rgba_f
cf_make_color_rgb
cf_make_color_rgba
cf_make_color_hex