The brown coloration is a natural defense mechanism. Caterpillars that pupate near twigs or pieces of wood tend to develop similar coloration
First signs of eclosure. The chrysalis turns darker in colour and the butterfly is almost fully visible (2nd from right)
The chrysalis has grown to be fully transparent by now and the wings are fully visible. It won't be long...
Butterfly climbed to higher ground to promote the transference of hemolymph into the wings.
There's nothing in a caterpillar that tells you that it's going to become a butterfly