hex_to_rgb: Converts Hex codes values to RGB vectors

View source: R/helper_functions.R

hex_to_rgbR Documentation

Converts Hex codes values to RGB vectors

Description

Converts Hex codes values to RGB vectors

Usage

hex_to_rgb(x)

Arguments

x

A hex colour code

Value

A corresponding matrix of red, blue and green values

Examples

hex_to_rgb("purple")
hex_to_rgb("#fafafa")


monochromeR documentation built on Sept. 8, 2023, 5:44 p.m.