The question may be trivial, but I need your help, to draw a full colored triangle and circle (where the triangle will be inside the circle).
Here is my file
input gjktc.mp; u:=1mm; beginfig(1); z0=(0,0); z1=(20u,0); z2=(10u,20u); draw z0..z1..z2..cycle withcolor green; draw z0--z1--z2--cycle withcolor red; endfig; end;
And the next one,
pic_2.mp, where the one line will be rotated, and the space between lines will be colored:
input gjktc.mp; u:=1mm; beginfig(1); z0=(0,0); z1=(20u,0); z2=(10u,10u); p1 = z0--z1--z2--cycle ; draw p1 withcolor black; draw (z2--z0) rotated 5 withcolor black; endfig; end;
Here is a picture of what I want to have: