broman (version 0.70-4)

colwalpha: Convert a color to use alpha transparency

Description

Convert a color to RGB and then to RGB with alpha transparency

Usage

colwalpha(color, alpha = 1)

Arguments

color

A character string for a color

alpha

Traparency value (between 0 and 1)

Value

A character string representing a color

Examples

Run this code
# NOT RUN {
colwalpha(c("blue", "red"), 0.5)
# }

Run the code above in your browser using DataCamp Workspace