Skip to contents

This is a helper function for rgb_to_hex. This function takes a single R, G, or B numeric value and converts it to hex.

Usage

int_to_hex(n)

Arguments

n

An int

Value

A string of length 2.

Examples

int_to_hex(22)
#> [1] "00"