summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/asymptote/examples/tile.asy
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/asymptote/examples/tile.asy')
-rw-r--r--Master/texmf-dist/doc/asymptote/examples/tile.asy13
1 files changed, 13 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/asymptote/examples/tile.asy b/Master/texmf-dist/doc/asymptote/examples/tile.asy
new file mode 100644
index 00000000000..fe9cbc523c7
--- /dev/null
+++ b/Master/texmf-dist/doc/asymptote/examples/tile.asy
@@ -0,0 +1,13 @@
+size(0,90);
+import patterns;
+
+add("tile",tile());
+add("filledtilewithmargin",tile(6mm,4mm,red,Fill),(1mm,1mm),(1mm,1mm));
+add("checker",checker());
+add("brick",brick());
+
+real s=2.5;
+filldraw(unitcircle,pattern("tile"));
+filldraw(shift(s,0)*unitcircle,pattern("filledtilewithmargin"));
+filldraw(shift(2s,0)*unitcircle,pattern("checker"));
+filldraw(shift(3s,0)*unitcircle,pattern("brick"));