diff options
Diffstat (limited to 'Master/texmf-dist/doc/asymptote/examples/strokepath.asy')
-rw-r--r-- | Master/texmf-dist/doc/asymptote/examples/strokepath.asy | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/asymptote/examples/strokepath.asy b/Master/texmf-dist/doc/asymptote/examples/strokepath.asy new file mode 100644 index 00000000000..c857150ec58 --- /dev/null +++ b/Master/texmf-dist/doc/asymptote/examples/strokepath.asy @@ -0,0 +1,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); + |