color_fade: Fade color towards target

View source: R/colorOps.R

color_fadeR Documentation

Fade color towards target

Description

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(s)

E.D. Gennatas


egenn/rtemis documentation built on Dec. 17, 2024, 6:16 p.m.