shinies are determined by this "(TrainerID xor SecretID) xor (PersonalityValue31..16 xor PersonalityValue15..0)" formula. This doesn't change during evolution, so evolving doesn't generate shinies. However, if you can find a shiny in the wild (1/8192 chance) but this chance is increased with shiny charm, Masuda method, and SOSing.