Edible glitter is not made of the same glitter material that regular glitter is made of.
So if you eat edible glitter the edible glitter should be digested fully in your stomach and should not come out in your poop as colors.
I've eaten edible glitter and never had it make my poop sparkle.
When I've eaten edible glitter my poop came out just normal.
Now if you ate regular non edible glitter then your poop will sparkle in those colors.
My youngest son when he was 2 years old ate some glitter and I didn't know about it until I changed his diaper and his poop was sparkling.
I called the doctor about it and the doctor said that as long as he has pooped it out he should be fine.
But if he got sick then bring him in.
I made sure to put any glitter away from his reach after that.