Precursors and genetic control of pigmentation