#define RESD_TYPES_COUNT 21 typedef struct { char code3[4]; // three-letter code char code1; // one-letter code double color_r; double color_g; double color_b; } RESIDUE_TYPE; RESIDUE_TYPE residue_types[RESD_TYPES_COUNT] = { {"UNK", 'X', 153/255.0, 153/255.0, 153/255.0}, {"ALA", 'A', 204/255.0, 255/255.0, 255/255.0}, {"ARG", 'R', 230/255.0, 6/255.0, 6/255.0}, {"ASN", 'N', 255/255.0, 153/255.0, 0/255.0}, {"ASP", 'D', 255/255.0, 204/255.0, 153/255.0}, {"CYS", 'C', 0/255.0, 255/255.0, 255/255.0}, {"GLN", 'Q', 255/255.0, 102/255.0, 0/255.0}, {"GLU", 'E', 255/255.0, 204/255.0, 0/255.0}, {"GLY", 'G', 0/255.0, 255/255.0, 0/255.0}, {"HIS", 'H', 255/255.0, 255/255.0, 153/255.0}, {"ILE", 'I', 0/255.0, 0/255.0, 128/255.0}, {"LEU", 'L', 51/255.0, 102/255.0, 255/255.0}, {"LYS", 'K', 198/255.0, 6/255.0, 0/255.0}, {"MET", 'M', 153/255.0, 204/255.0, 255/255.0}, {"PHE", 'F', 0/255.0, 204/255.0, 255/255.0}, {"PRO", 'P', 255/255.0, 255/255.0, 0/255.0}, {"SER", 'S', 204/255.0, 255/255.0, 153/255.0}, {"THR", 'T', 0/255.0, 255/255.0, 153/255.0}, {"TRP", 'W', 204/255.0, 153/255.0, 255/255.0}, {"TYR", 'Y', 204/255.0, 255/255.0, 204/255.0}, {"VAL", 'V', 0/255.0, 0/255.0, 255/255.0} };