added colorFromHex and hexFromColor

Conversion between hexadecimal (HTML) color format and 24- and 32-bits
colors.