The function tints or lightens an RGB value by adding white to the values.
Arguments
- rgb_value
A
vector
with length \(3 \times 1\).- tint_factor
A
double
that ranges between \([0, 1]\).
Examples
tint(c(22, 150, 230), tint_factor = 0.5)
#> [1] 138.5 202.5 242.5