summaryrefslogtreecommitdiff
path: root/graphics/asymptote/examples/labelbox.asy
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /graphics/asymptote/examples/labelbox.asy
Initial commit
Diffstat (limited to 'graphics/asymptote/examples/labelbox.asy')
-rw-r--r--graphics/asymptote/examples/labelbox.asy11
1 files changed, 11 insertions, 0 deletions
diff --git a/graphics/asymptote/examples/labelbox.asy b/graphics/asymptote/examples/labelbox.asy
new file mode 100644
index 0000000000..38153b856e
--- /dev/null
+++ b/graphics/asymptote/examples/labelbox.asy
@@ -0,0 +1,11 @@
+size(0,100);
+real margin=2mm;
+pair z1=(0,1);
+pair z0=(0,0);
+
+object Box=draw("small box",box,z1,margin);
+object Ellipse=draw("LARGE ELLIPSE",ellipse,z0,margin);
+
+add(new void(frame f, transform t) {
+ draw(f,point(Box,SW,t){SW}..{SW}point(Ellipse,NNE,t));
+ });