Learn R Programming

schemr (version 0.3.1)

hex_to_rgb: Convert hexadecimal colours to RGB colour channels.

Description

Convert hexadecimal colours to RGB colour channels.

Usage

hex_to_rgb(hex)

Value

A tibble of red, green and blue colour channels.

Arguments

hex

A character vector containing hex representations of RGB colours.

Examples

Run this code
hex_to_rgb(c("#5f9e3a"))

Run the code above in your browser using DataLab