dot-convert_alpha: Converts an alpha value between its numeric and its...

.convert_alphaR Documentation

Converts an alpha value between its numeric and its hex-encoded form.

Description

The function accepts a numeric (or NULL/NA) or a two-character hex encoded alpha representation and returns a the respective other representation.

Usage

.convert_alpha(numeric_alpha = NULL, hex_alpha = NULL)

Arguments

numeric_alpha

A numerical value between 0 and 1.

hex_alpha

A two-letter character string.

Value

If numeric_alpha was specified, its two-letter representation is returned. If hex_alpha was specified, its numeric representation is returned.


visR documentation built on May 29, 2024, 11:50 a.m.