powered by
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
# NOT RUN { int_to_hex(22) # }
Run the code above in your browser using DataLab