t_col: Set a color's alpha to a percentage.

View source: R/colors.R

t_colR Documentation

Set a color's alpha to a percentage.

Description

Sets the alpha value of the RGB color to match the given percentage of transparency as closely as possible.

Usage

t_col(color, percent = 50, name = NULL)

Arguments

color

an RGB color

percent

percentage transparency

name

optional name for the color

Value

An RGB color string.

Examples

?

thartbm/SMCL documentation built on Oct. 23, 2022, 5:17 a.m.