Skip to contents

Get color with alpha applied, alpha goes from 0.0f to 1.0f.

Usage

color_alpha(color, alpha)

Arguments

color

A color.

alpha

A number.

Value

A color

Note

This function has been auto-generated from the following Raylib function definition:

Color ColorAlpha(Color color, float alpha);

See also

Other alpha functions: color_alpha_blend()

Examples

color_alpha("red", 0.0)
#> color(r = 255, g = 0, b = 0, a = 0)