It was the main medium used for panel painting and illuminated manuscripts in the Byzantine world and the Middle Ages in Europe , until it was replaced by oil painting as the most popular medium for large paintings .
The art technique was known from the classical world , where it appears to have taken over from encaustic painting and was the main medium used for panel painting and illuminated manuscripts in the Byzantine world and Medieval and Early renaissance Europe .