powered by
This function converts an RGB value to the hexadecimal numbering system.
rgb_to_hex(R, G, B, pound = TRUE)
A int that is between 0 and 255 for the Red value.
int
A int that is between 0 and 255 for the Green value.
A int that is between 0 and 255 for the Blue value.
A bool that indicates whether a pound sign should be prepended to the hexadecimal.
bool
A string containing the hexadecimal information.
string
# NOT RUN { # Hexadecimal with pound sign rgb_to_hex(255,255,255) # Heaxadecimal without pound sign rgb_to_hex(255,255,255,FALSE) # }
Run the code above in your browser using DataLab