summaryrefslogtreecommitdiff
path: root/info/asymptote-faq-zh-cn/src/figures/8-9a.asy
blob: 5f0024e8d4ec21b51da4c095f488440d6dfeae1b (plain)
1
2
3
4
5
6
7
8
9
10
fill((0,0)--(100,100)--(200,0)--cycle);

pair center(picture pic=currentpicture) {return 0.5*(pic.min()+pic.max());}

real height=100;
real width=100;
pair delta=0.5(width,height);
pair c=center();
clip(box(c-delta,c+delta));