darken: Darken colour.

Description Usage Arguments Value Examples

View source: R/tinter.R

Description

Darken colour.

Usage

1
darken(x, amount)

Arguments

x

A vector of strings of colours in any format accepted by grDevices::col2rgb().

amount

A number from 0 to 1.

Value

A vector of modified colours.

Examples

1
darken(tinter("blue"), 0.2)

tinter documentation built on April 19, 2020, 4:15 p.m.