colAlpha: Add alpha channel

View source: R/yogitools.R

colAlphaR Documentation

Add alpha channel

Description

Adds an alpha channel (i.e. transparency) to a predefined color

Usage

colAlpha(color, alpha)

Arguments

color

a predefined color string (e.g. "firebrick")

alpha

a number between 0 and 1 for the alpha channel value

Value

the corresponding color with the added alpha channel value

Examples

transparentChartreuse <- colAlpha("chartreuse3",0.3)

jweile/yogitools documentation built on May 11, 2023, 7:42 p.m.