css_col2vec: Convert a CSS representation of a color to an r,g,b numeric

View source: R/utils_css_color.R

css_col2vecR Documentation

Convert a CSS representation of a color to an r,g,b numeric

Description

Convert a CSS representation of a color to an r,g,b numeric

Usage

css_col2vec(x)

Arguments

x

chr CSS Vector in hexadecimal or rgb/rgba format

Value

num with names r,g,b

See Also

css_col2vec_

Other color: color_cycle(), color_distance(), color_luminance(), color_match(), color_rgb_table(), color_separate(), color_text_by_luminance(), colors2css(), luminance_filter(), rgb2hex()

Examples

css_col2vec("#12B4D3")
css_col2vec("rgba(111,96,140,1)")
css_col2vec("green")

yogat3ch/UU documentation built on May 31, 2024, 10:14 p.m.