col.tint: Tint an RGB color

Description Usage Arguments Details Author(s) References Examples

Description

Tints an RBG color

Usage

1
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)

Author(s)

Claus Ekstrom claus@rprimer.dk

References

Ekstrom, CT (2011) The R Primer.

Examples

1
newcol <- col.tint("blue")


Search within the MESS package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.