Color getColor(IAtom atom) {
        if (!coloured) {
            return fg;
        }
        switch (atom.getAtomicNumber()) {
            case 7:
                return new Color(0x4F4BFF);
            case 8:
                return new Color(0xFF464F);
            case 9:  // F
            case 17: // Cl
                return new Color(0x76FF5A);
            case 35: // Br
                return new Color(0x972D1D);
            case 53: // I
                return new Color(0x68307F);
            case 15: // P
                return new Color(0xFF8443);
            case 16: // S
                return new Color(0xEFD657);
        }
        return fg;
    }