xlAlpha: Hexadecimal colour opacity.

Description Usage Arguments Details Value Examples

View source: R/xlAlpha.R

Description

Returns the hexadecimal values of numeric opacity.

Usage

1

Arguments

x

a vector of numeric double in range [0, 1], representing the percentage of opacity.

Details

This is a function based on HTML colour opacity. Opacity is the hex value for RGB values in range [0, 255],mapped from range [0, 1] as 'x% opaque'.

Value

A vector of the same length, 2-character string representing the hexadecimal value.

Examples

1
2
3
xlAlpha(c(0.3, 0.9, 0.5))

## Not run: xlAlpha(2)

xinye1/xltools documentation built on Dec. 2, 2020, 7:23 p.m.