determine depth of color areas (minimum number of steps to reach them)