summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/support/asymptote-manual-zh/src/clippath.asy
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/support/asymptote-manual-zh/src/clippath.asy')
-rw-r--r--Master/texmf-dist/doc/support/asymptote-manual-zh/src/clippath.asy5
1 files changed, 5 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/support/asymptote-manual-zh/src/clippath.asy b/Master/texmf-dist/doc/support/asymptote-manual-zh/src/clippath.asy
new file mode 100644
index 00000000000..e4373f581a7
--- /dev/null
+++ b/Master/texmf-dist/doc/support/asymptote-manual-zh/src/clippath.asy
@@ -0,0 +1,5 @@
+picture pic;
+path C1 = circle((0,0), 1cm), C2 = circle((1cm,0), 1cm);
+fill(C1, paleblue); draw(pic, C2, linewidth(2mm));
+fill(pic, C1, heavyblue); clip(pic, C2);
+add(pic);