Learn R Programming

monochromeR (version 0.2.0)

hex_to_rgb: Converts Hex codes values to RGB vectors

Description

Converts Hex codes values to RGB vectors

Usage

hex_to_rgb(x)

Value

A corresponding matrix of red, blue and green values

Arguments

x

A hex colour code

Examples

Run this code
hex_to_rgb("purple")
hex_to_rgb("#fafafa")

Run the code above in your browser using DataLab