Why is there green stool a day after colonoscopy?

Why does the stool appear green the next day of the colonoscopy?