Sauté onion in butter for 5 minutes without browning.
Blend in flour to make a paste. Add milk and stir well. Mix in corn, salt, and pepper. Cook in a double boiler for 20 minutes. Strain and cool.
Reheat after adding red pepper. If fresh red pepper is not available, use cayenne, to taste. Just before serving, mix in egg that has been combined with cream.