function newc = mixEqual(c1,c2)
% Mix colors c1 and c2.
% c1, c2, and newc are vectors representing colors.
% Display the three colors.

close all
figure
axis equal off
hold on

newc= (c1+c2)/2;

DrawRect(0,0,1,.2,c1)
DrawRect(0,.2,1,.2,newc)
DrawRect(0,.4,1,.2,c2)

hold off