Learn R Programming

tinter (version 0.1.0)

darken: Darken colour.

Description

Darken colour.

Usage

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

Run this code
# NOT RUN {
darken(tinter("blue"), 0.2)
# }

Run the code above in your browser using DataLab