makeTransparent: utility function for setting transparency of colors

Description Usage Arguments Value Author(s) See Also Examples

View source: R/functions.R

Description

utility function for setting transparency of colors

Usage

1

Arguments

color

character string indicating color

...

passed to rgb function. See in particular the alpha argument of rgb – 0 means completely transparent and alpha =1 means not transparent.

Value

rbg output: "A character vector with elements of 7 or 9 characters, "#" followed by the red, blue, green and optionally alpha values in hexadecimal (after rescaling to '0 ... 255')."

Author(s)

R. Scharpf

See Also

rgb

Examples

1
	makeTransparent("black", alpha=0.5)

rscharpf/crlmmCompendium documentation built on May 28, 2019, 3:31 a.m.