calc_hex_color: Calculate the hex color value from a color name

View source: R/utilities.R

calc_hex_colorR Documentation

Calculate the hex color value from a color name

Description

This little function takes a color name (e.g.: "red") and calculates the corresponding hex color value.

Usage

calc_hex_color(col)

Arguments

col

A string holding a color name (e.g.: "red") or a color value (e.g.: "#F00000")

Value

The hex color value as string without hashtag (e.g.: "F00000")


R-package/styledTables documentation built on Feb. 6, 2024, 2:21 a.m.