tint: Shade or tint

Description Usage Arguments Value

View source: R/pkTintShade.r

Description

Shade or tint

Usage

1
2
3
tint(colors = c("red", "green", "blue"), opt = "shade", factor = 0.5)

pkTintShade(colors = c("red", "green", "blue"), opt = "shade", factor = 0.5)

Arguments

opt

"tint" (lighten) or "shade" (darken)

x

(vector of) color(s) with no alpha

Value

altered (vector of) color(s)


kraaijenbrink/pkrf documentation built on Nov. 14, 2020, 12:29 p.m.