Learn R Programming

broman (version 0.84)

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)

Value

A character string representing a color

Arguments

color

A character string for a color

alpha

Traparency value (between 0 and 1)

Examples

Run this code
colwalpha(c("blue", "red"), 0.5)

Run the code above in your browser using DataLab