if (value.indexOf('#') == 0) { try { return 0xFF000000 | PApplet.unhex(value.substring(1)); } catch (NumberFormatException ex) { return dflt;
paint.setColor(PApplet.unhex(hex));
String[] m = PApplet.match(name, "_x([A-Za-z0-9]{2})_"); if (m == null) break; char repair = (char) PApplet.unhex(m[1]); name = name.replace(m[0], "" + repair);
String[] m = PApplet.match(name, "_x([A-Za-z0-9]{2})_"); if (m == null) break; char repair = (char) PApplet.unhex(m[1]); name = name.replace(m[0], "" + repair);