Apply tint to a provided color

tint_color(x, tint)

Arguments

x

either a color name (as listed by colors()), a hexadecimal string

tint

the percentage to tint the color. Must be a value between 0 and 1