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)

sebdalgarno/tinter documentation built on Aug. 26, 2020, 8:55 p.m.