thlShade.Rd
For each color, create a lighter version either by introducing transparency or by just dimming down.
thlShade(col, alpha = 0.25, thin = 1)
A color. Eighter a name such as "red" or preferrably a hex string such as "#FF0000"
Amount of transparency, 1=not transparent, 0=fully transparent. Recycled.
Amount of lightening, 1=none, 0=white.
A vector of rgba values suitable for using in graphics.
Same thin is used for all components of RGB. Thus thin=0
always
results in white. No value checking is done, so either thin
or
alpha
outside [0,1] most likely results in error.
Not all graphics devices support transparency. Parameter thin
may be helpful in these situations.
thlShade("red", alpha = .40)
#> [1] "#FF000066"
thlShade(palette_thl("quali", n = 8), alpha = .8, thin = .5)
#> [1] "#A8CD97CC" "#97B1D6CC" "#DF9FB9CC" "#FDD38DCC" "#BDE0A1CC" "#94D0E0CC"
#> [7] "#E6BBD6CC" "#E1E1E3CC"