Obsidian and Pāhoehoe lava
Igneous rock is formed from the cooling of magma or lava.
Extrusive
Two igneous rocks formed by fast cooling lava are basalt, which is a fine-grained volcanic rock, and obsidian, which is a natural glass formed from rapidly cooling lava without crystal growth.
Some igneous rocks are very smooth and glassy (obsidian) while others have a very rough texture, such as the rocks used on the bottom of a propane gas grill. They are all formed from lava, but the glassy rocks cooled so fast that crystals did not have a chance to form. The rougher rocks cooled more slowly, allowing larger crystals to form--Slower cooling = larger crystals = rougher texture.
How fast the magma or lava cooled. How fast the rock cooled
Indeed it does! Depending on how fast the lava crystalizes a different rock will be formed. Rocks that form from within the earth (like through a volcanic eruption, lava flow, magma intrusion, ect) are known as igneous rocks. Igneous rocks include granite, basalt, obsidian, andesite, among others. Basalt and obsidian are arguably the most well known rocks formed from a lava flow.
There are three major types of rocks: igneous, metamorphic, and sedimentary. Rocks are classified based on the process by which they were formed. Sedimentary rocks form from sand, dust, and tiny rock particles that are fused by water and extreme pressure over time. Igneous rocks form from cooled magma or lava; depending on how fast they were cooled and solidified, igneous rocks may or may not go through crystallization. Metamorphic rocks are rocks that changed from either sedimentary rocks, igneous ones, or other metamorphic rocks. These generally form from wind, water, or chemical erosion.
Rocks formed by fast cooling magma are typically fine-grained and include rocks like basalt, andesite, and rhyolite. These rocks cool quickly on or near the Earth's surface, resulting in small mineral grains and a smooth texture.
It will be an igneous rock
Extrusive igneous rocks are fine grained due to fast cooling. They cool at a faster rate than most igneous rocks.
The difference between an Extrusive and Intrusive igneous rock is the way in which they cool. An Extrusive igneous rock cools very fast on the surface and is created by lava. Since the cooling process is very fast extrusive igneous rocks have very small crystals (fine grained). On the other hand an Intrusive igneous rock cools very slowly beneath the surface and is created by magma. Since the cooling process is very slow intrusive igneous rocks have very large crystals (coarse grained). In some instances there is also a third type of igneous rock. Technically it is an extrusive rock, but it resembles glass. This glass type of igneous rock forms when magma/lava is instantly cooled.
Igneous rocks look different depending on how fast the magma cools.