transp: Make transparent

View source: R/util.R

transpR Documentation

Make transparent

Description

Make a color transparent by adding an alpha channel.

Usage

transp(col = "violet", alpha = 0.08)

Arguments

col

Character string specifying the color to make transparent.

alpha

Numeric value between 0 and 1 specifying the transparency level.

Value

A character string representing the color with an alpha channel.

Author(s)

2024-2025 Tobias Schmidt: initial version.

Examples

transp("violet", 0.08)
transp("black", 0.5)

metabodecon documentation built on Nov. 5, 2025, 7:12 p.m.