The reason for the loss of color after the industrial revolution is that the light-colored moths were "selected against" by predators. These birds could only see the light ones against the newly dark, sooted background. Over time, these predators could no longer distinguish the dark ones from their natural dark, sooted background. Thus more light-colored moths stood out against the dark soot, and were eaten. And more dark-colored moths eluded the birds, survived to reproduce, passing on more of their dominant genes for dark color to their offspring. After several decades of hundreds of thousands of generations, most of the later generations were dark, due to selective advantage of camouflage to survive predation.
The red kernels are the dominant trait and will be more numerous on the ear of corn than the yellow. This happens because its dominance mearns that if it is a combination of either RR or Rr, it will still take over the r trait. The only time the yellow can be expressed entirely Is when the combination is rr.