Add fromRGB/toRGB routines.