read and use layer colors as specified on the table