diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /graphics/asymptote/examples/strokepath.asy |
Initial commit
Diffstat (limited to 'graphics/asymptote/examples/strokepath.asy')
-rw-r--r-- | graphics/asymptote/examples/strokepath.asy | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/graphics/asymptote/examples/strokepath.asy b/graphics/asymptote/examples/strokepath.asy new file mode 100644 index 0000000000..c857150ec5 --- /dev/null +++ b/graphics/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); + |