// OK, so it must be a named color, i.e. lightyellow / green etc etc
// BUT, there are 150 of these implemented as standard across a
// browser
// AND, including support for all those will bloat the code, so we'll
// return an exception
throw new ColorException("Unable to parse colour: " + hex);
}
}
} catch (ColorException e) {
rgb[0] = 255;
rgb[1] = 0;