Skip to content
Prev 67244 / 398502 Next

hex format

On Thu, 7 Apr 2005, Earl F. Glynn wrote:
The convertColor function in R 2.1.0 provides colorspace conversion, 
including "hex".
#ff0080 isn't a number, it's a colour (or perhaps a color). If it were 
converted to numeric form it would be a vector of three numbers, and which 
three numbers would depend on the coordinate system used for colour space. 
For example, R already provides both hsv() and rgb() to create colours 
from vectors of three numbers, but the correspondence is different in each 
case.


 	-thomas