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)

Displayr/flipChartBasics documentation built on June 2, 2025, 11:49 a.m.