summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/asymptote/examples/strokepath.asy
blob: c857150ec58bb4cbbee676a48be01cf8bce823d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
path g=scale(100)*unitcircle;
pen p=linewidth(1cm);

frame f;
// Equivalent to draw(f,g,p):
fill(f,strokepath(g,p),red);
shipout("strokepathframe",f);
shipped=false;

size(400);

// Equivalent to draw(g,p):
add(new void(frame f, transform t) {
    fill(f,strokepath(t*g,p),red);
  });
currentpicture.addPath(g,p);