summaryrefslogtreecommitdiff
path: root/Master/texmf/doc/asymptote/examples/labelbox.asy
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf/doc/asymptote/examples/labelbox.asy')
-rw-r--r--Master/texmf/doc/asymptote/examples/labelbox.asy11
1 files changed, 11 insertions, 0 deletions
diff --git a/Master/texmf/doc/asymptote/examples/labelbox.asy b/Master/texmf/doc/asymptote/examples/labelbox.asy
new file mode 100644
index 00000000000..cd61a9da69c
--- /dev/null
+++ b/Master/texmf/doc/asymptote/examples/labelbox.asy
@@ -0,0 +1,11 @@
+size(0,100);
+real margin=2mm;
+pair z1=(0,1);
+pair z0=(0,0);
+
+object label1=draw("small box",box,z1,margin);
+object label0=draw("LARGE ELLIPSE",ellipse,z0,margin);
+
+add(new void(frame f, transform t) {
+ draw(f,point(label1,SW,t){SW}..{SW}point(label0,NNE,t));
+ });