colorize_node_attrs function

Apply colors based on node attribute values