Why Do Lobsters Turn Red When They’re Cooked?

As any lobster connoisseur knows, this crustacean turns bright red when it’s heated. Why does this dramatic color transformation happen?

Source: https://www.livescience.com/66093-why-cooked-lobsters-turn-red.html