 Shunga only ceased to be produced in the 19th century when photography was invented.The Chinese tradition of the erotic was also extensive, with examples of the art dating back as far as the Yuan Dynasty (1271–1368).The erotic art of China reached its peak during the latter part of the Ming Dynasty (1368–1644).