created color function