jjb (version 0.1.1)

tint: Tint an RGB value

Description

The function tints or lightens an RGB value by adding white to the values.

Usage

tint(rgb_value, tint_factor = 0.2)

Arguments

rgb_value

A vector with length \(3 \times 1\).

tint_factor

A double that ranges between \([0, 1]\).

Value

A matrix with dimensions \(3 \times 1\).

Examples

Run this code
# NOT RUN {
tint(c(22, 150, 230), tint_factor = 0.5)
# }

Run the code above in your browser using DataLab