beginfig(0); path p; pair A,B,C; transform T; u:=3cm; A=u*dir(-30); B=u*dir(90); C=u*dir(210); A transformed T = 1/6[A,B]; B transformed T = 1/6[B,C]; C transformed T = 1/6[C,A]; show T; p = A--B--C--cycle; for i=0 upto 60: draw p withcolor (i+1)*0.1[red, green]; p:= p transformed T; endfor; endfig; end;
Metapost Sandbox - Triangle Transformations