The Indian Buddhists, such as Dignāga in the 5th century and Dharmakirti in the 7th century, developed a type of atomism which defined the atoms which make up the world as momentary flashes of light or energy. They viewed light as being an atomic entity equivalent to energy, though they also viewed all matter as being composed of these light/energy particles.