col2hex: Convert R color string and output the color as hex

View source: R/typeconv.R

col2hexR Documentation

Convert R color string and output the color as hex

Description

Convert R color string and output the color as hex

Usage

col2hex(xx, transval = NULL)

Arguments

xx

The R color string to convert

transval

transparency (alpha) value, as 2-character hex string.

Value

A hex string representing the color and transparency

Examples

col2hex("red", "2F")

stackcon/rngt documentation built on June 17, 2022, 5:29 p.m.