what are the compositions of rocks
Most obsidians have a composition similar to rhyolite and granite. Granites and rhyolites can form from the same magma as obsidian and are often geographically associated with the obsidian. Rarely, volcanic glasses are found with a composition similar to basalt and gabbro.
Igneous Rocks. Igneous rocks are formed from melted rock that has cooled and solidified. When rocks are buried deep within the Earth, they melt because of the high pressure and temperature; the molten rock (called magma) can then flow upward or even be erupted from a volcano onto the Earth's surface.