Learn R Programming

monochromeR (version 0.2.0)

rgb_to_hex: Converts RGB values to hex colour code

Description

Converts RGB values to hex colour code

Usage

rgb_to_hex(x)

Value

A corresponding hex colour code

Arguments

x

A matrix of red, blue and green values

Examples

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

Run the code above in your browser using DataLab