How was indigo produced in India during British rule?

The British forced the Indians to grow indigo. There were a number of cotton textiles in Europe but there were no artificial colors at that time. So they demanded for indigo for dyeing their cotton threads. They bought indigo from India at low cost and sold at high costs.