The tradition of painting kolam is believed to have originated about 5,000 years ago. The kolam has two functions – religious and ornamental. Traditionally, various motifs were drawn on the floor to feed insects with the design made out of edible grains, and the dyes from vegetable colouring. This act of charity is encouraged in Hindu scriptures. The kolam is also drawn to welcome Lakshmi, the Goddess of Prosperity, into the home, and drives away the evil spirits.