summaryrefslogtreecommitdiff
path: root/graphics/asymptote/doc/subpictures.asy
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/asymptote/doc/subpictures.asy')
-rw-r--r--graphics/asymptote/doc/subpictures.asy20
1 files changed, 20 insertions, 0 deletions
diff --git a/graphics/asymptote/doc/subpictures.asy b/graphics/asymptote/doc/subpictures.asy
new file mode 100644
index 0000000000..1ace23f567
--- /dev/null
+++ b/graphics/asymptote/doc/subpictures.asy
@@ -0,0 +1,20 @@
+picture pic1;
+real size=50;
+size(pic1,size);
+fill(pic1,(0,0)--(50,100)--(100,0)--cycle,red);
+
+picture pic2;
+size(pic2,size);
+fill(pic2,unitcircle,green);
+
+picture pic3;
+size(pic3,size);
+fill(pic3,unitsquare,blue);
+
+picture pic;
+add(pic,pic1.fit(),(0,0),N);
+add(pic,pic2.fit(),(0,0),10S);
+
+add(pic.fit(),(0,0),N);
+add(pic3.fit(),(0,0),10S);
+