makeTransparent: Wrapper function of to add transparency to a colour.

View source: R/makeTransparent.R

makeTransparentR Documentation

Wrapper function of to add transparency to a colour.

Description

Add transparency to the selected colours.

Usage

makeTransparent(colour, alpha)

Arguments

colour

A R colour

alpha

A value between 0 and 1 that defines the transparency 0 for full transparency and 1 for no transparency

Value

Return a colour with the provided level of transparency.

Examples

makeTransparent('black',0.5)
makeTransparent('black',1:10/10)
makeTransparent(rainbow(10), 1:10/10)

mchevalier2/crestr documentation built on Feb. 14, 2025, 6:31 p.m.