rgb_to_hex: Converts RGB values to hex colour code

View source: R/helper_functions.R

rgb_to_hexR Documentation

Converts RGB values to hex colour code

Description

Converts RGB values to hex colour code

Usage

rgb_to_hex(x)

Arguments

x

A matrix of red, blue and green values

Value

A corresponding hex colour code

Examples

temp_rgb_matrix <- rgba_to_rgb(c(52, 46, 39, 0.8))
rgb_to_hex(temp_rgb_matrix)


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