Skip to contents

Fade color towards target

Usage

color_fade(x, to = "#000000", pct = 0.5)

Arguments

x

Color source

to

Target color

pct

Numeric (0, 1) fraction of the distance in RGBA space between x and to to move. e.g. .5 gets the mean RGBA value of the two

Value

Color in hex notation

Author

EDG