StripAlphaChannel: Removes the last two characters from a vector of hexadecimal...

View source: R/chartcolors.R

StripAlphaChannelR Documentation

Removes the last two characters from a vector of hexadecimal colors that include an alpha channel.

Description

Removes the last two characters from a vector of hexadecimal colors that include an alpha channel.

Usage

StripAlphaChannel(hex.colors, warning.msg = NULL)

Arguments

hex.colors

A character vector of colors in hexadeximal format.

warning.msg

Optional warning msg to give if alpha values were present.

Examples

c <- c("#FFFFFFFF", "#ABCDEF3D")
StripAlphaChannel(c)

NumbersInternational/flipChartBasics documentation built on Feb. 26, 2024, 5:34 a.m.