transp: Color helpers

Description Usage Arguments Value

Description

Set alpha transparency parameter of input colors.

Usage

1
2
3
4
5
transp(col, factor = 0.5)

lighter(col, factor = 0.5)

darker(col, factor = 0.5)

Arguments

col

A vector of colors to transform.

factor

A value ranging between 0 and 1 decribing the strenght of the effet.

Value

transparent returns a transparent version of the input colors with an alpha equal to the factor argument.

lighter returns a brightened version of the input colors.

darker returns a darkened version of the input colors.


SESman/rbl documentation built on May 9, 2019, 11:10 a.m.