hex_to_rgb: Convert hexadecimal colours to RGB colour channels.

View source: R/color-spaces.R

hex_to_rgbR Documentation

Convert hexadecimal colours to RGB colour channels.

Description

Convert hexadecimal colours to RGB colour channels.

Usage

hex_to_rgb(hex)

Arguments

hex

A character vector containing hex representations of RGB colours.

Value

A tibble of red, green and blue colour channels.

Examples

hex_to_rgb(c("#5f9e3a"))

schemr documentation built on June 25, 2024, 9:07 a.m.