tint: Shade or tint

View source: R/pkTintShade.r

tintR Documentation

Shade or tint

Description

Shade or tint

Usage

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 July 4, 2023, 10:16 p.m.