Skip to contents

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

Usage

fade(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 Fade(Color color, float alpha);

Examples

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