Learn R Programming

MESS (version 0.5.7)

col.tint: Tint an RGB color

Description

Tints an RBG color

Usage

col.tint(col, tint = 0.5)

Arguments

col

a vector of RGB color(s)

tint

numeric value between 0 and 1. Zero results in white and 1 means no change

Details

This function tints an RGB color and returns the tinted RGB color (with alpha channel added)

References

Ekstrom, CT (2011) The R Primer.

Examples

Run this code
# NOT RUN {
newcol <- col.tint("blue")

# }

Run the code above in your browser using DataLab