public Colour getColourRGB() {
Matcher matcherRGB = patternRGB.matcher(getValue().replaceAll("\\s", ""));
if (matcherRGB.matches()) {
return new ColourRGBA(Integer.parseInt(matcherRGB.group(1)), Integer.parseInt(matcherRGB.group(2)), Integer.parseInt(matcherRGB.group(3)), 0xFF);
}
return new ColourRGBA(getHexValue() << 8 | 0xFF);
}