File: strokepath.asy

package info (click to toggle)
asymptote 2.38-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 11,908 kB
  • ctags: 13,089
  • sloc: cpp: 60,286; ansic: 4,754; python: 3,909; sh: 3,363; perl: 1,563; lisp: 1,363; makefile: 606; yacc: 554; lex: 444
file content (17 lines) | stat: -rw-r--r-- 315 bytes parent folder | download | duplicates (8)
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);