colorConvert
convert hex color to color name, color name to hex, rgb to hex, hex to rgb.
16进制的颜色值,颜色名称,RGB颜色互转.
eg:
colorConvert.RGB2Hex("rgb ( 255 , 0 , 0)"); //output "#FF0000"
colorConvert.hex2RGB("#00FF00"); //output "[0,255,0]"
colorConvert.RGB2Name("rgb ( 255 , 0 , 0)"); //output "red"
colorConvert.name2Hex("red"); //output "#FF0000"