diff options
Diffstat (limited to 'graphics/asymptote/examples/tensor.asy')
-rw-r--r-- | graphics/asymptote/examples/tensor.asy | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/graphics/asymptote/examples/tensor.asy b/graphics/asymptote/examples/tensor.asy new file mode 100644 index 0000000000..19b1e08765 --- /dev/null +++ b/graphics/asymptote/examples/tensor.asy @@ -0,0 +1,9 @@ +size(200); + +pen[][] p={{red,green,blue,cyan},{blue,green,magenta,rgb(black)}}; +path G=(0,0){dir(-120)}..(1,0)..(1,1)..(0,1)..cycle; +path[] g={G,subpath(G,2,1)..(2,0)..(2,1)..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); |