What determines the color of sedimentary rocks?

The composition types of sediments is made up.