R/colors.R
int_to_hex.Rd
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.
rgb_to_hex
int_to_hex(n)
An int
int
A string of length 2.
string
int_to_hex(22) #> [1] "00"