summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/examples/tensor.asy
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/asymptote/examples/tensor.asy')
-rw-r--r--Build/source/utils/asymptote/examples/tensor.asy8
1 files changed, 8 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/examples/tensor.asy b/Build/source/utils/asymptote/examples/tensor.asy
new file mode 100644
index 00000000000..3791b032b92
--- /dev/null
+++ b/Build/source/utils/asymptote/examples/tensor.asy
@@ -0,0 +1,8 @@
+size(200);
+
+pen[][] p={{red,green,blue,cyan},{green,blue,rgb(black),magenta}};
+path G=(0,0){dir(-120)}..(1,0)..(1,1)..(0,1)..cycle;
+path[] g={G,subpath(G,1,2)..(2,1)..(2,0)..cycle};
+pair[][] z={{(0.5,0.5),(0.5,0.5),(0.5,0.5),(0.5,0.5)},{(2,0.5),(2,0.5),(1.5,0.5),(2,0.5)}};
+tensorshade(g,p,z);
+dot(g);