What were casta paintings? What was their purpose?

A.Were painted to show Africans the diversity of the people.
B. Were painted to show Europeans the diversity of the people
C.Were painted to show Natives the diversity of the people
D.Were painted to show Americans the racism of the people