summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/examples/strokepath.asy
blob: ee18b1c9bfec62307ba2d7e217b73a4aacb72509 (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):
currentpicture.add(new void(frame f, transform t) {
    fill(f,strokepath(t*g,p),red);
  });
currentpicture.addPath(g,p);