colwalpha: Convert a color to use alpha transparency

View source: R/colwalpha.R

colwalphaR Documentation

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

colwalpha(c("blue", "red"), 0.5)

broman documentation built on May 29, 2024, 7:18 a.m.

Related to colwalpha in broman...