picture a,b;
a = image(
for i=0 upto 2:
fill s[2i] withcolor .6[c[i],white];
fill s[2i+1] withcolor .4[c[i],white];
endfor
for i=0 upto 2:
draw point i of t -- point 3/2+i of t;
endfor
draw t;);
b = image(
for i=0 upto 2:
fill s[2i] withcolor .6[c[i],white];
fill s[2i+1] rotatedabout(point i+1/2 of t, 180) withcolor .4[c[i],white];
endfor
for i=0 upto 2:
draw point i of t -- centroid -- centroid rotatedabout(point i+1/2 of t,180) -- cycle;
endfor
draw t;);
draw a;
draw b shifted 222 right;
endfig;
\end{mplibcode}
\end{document}