powered by
This function reads a set of hexadecimal color descriptions from a file and creates a color object containing the corresponding colors.
readhex(file = "", class = "RGB")
An color object of the specified class containing the color descriptions.
The file containing the color descriptions.
The kind of color object to be returned.
Ross Ihaka
The file is assumed to contain hexadecimal color descriptions of the form #RRGGBB.
#RRGGBB
writehex, readRGB, hex2RGB, RGB, HSV, XYZ, LAB, polarLAB, LUV, polarLUV,
writehex
readRGB
hex2RGB
RGB
HSV
XYZ
LAB
polarLAB
LUV
polarLUV
if (FALSE) { rgb <- readhex("pastel.txt") hsv <- readhex("pastel.txt", "HSV") }
Run the code above in your browser using DataLab