summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/examples
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-10-21 17:29:28 +0000
committerKarl Berry <karl@freefriends.org>2019-10-21 17:29:28 +0000
commitef2ee92ba9a13edf8ae31e3941f8a47dae5e928e (patch)
tree5bef718b5f900818966788c4553a415a9cd7d3b9 /Build/source/utils/asymptote/examples
parent9474b7db3211261c19db160af542aa1a855659b6 (diff)
asy 2.59 sources
git-svn-id: svn://tug.org/texlive/trunk@52473 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/examples')
-rw-r--r--Build/source/utils/asymptote/examples/arrows3.asy19
-rw-r--r--Build/source/utils/asymptote/examples/extrudedcontour.asy9
-rw-r--r--Build/source/utils/asymptote/examples/pathintersectsurface.asy2
-rw-r--r--Build/source/utils/asymptote/examples/tiling.asy7
4 files changed, 30 insertions, 7 deletions
diff --git a/Build/source/utils/asymptote/examples/arrows3.asy b/Build/source/utils/asymptote/examples/arrows3.asy
index 06b986ef5fe..b71c08406aa 100644
--- a/Build/source/utils/asymptote/examples/arrows3.asy
+++ b/Build/source/utils/asymptote/examples/arrows3.asy
@@ -11,12 +11,29 @@ currentlight=light(gray(0.5),specularfactor=3,
defaultpen(0.75mm);
path3 g=arc(O,1,90,-60,90,60);
-transform3 t=shift(invert(3S,O));
draw(g,blue,Arrows3(TeXHead3),currentlight);
draw(scale3(3)*g,green,ArcArrows3(HookHead3),currentlight);
draw(scale3(6)*g,red,Arrows3(DefaultHead3),currentlight);
+transform3 t=shift(invert(3S,O));
+
draw(t*g,blue,Arrows3(TeXHead2),currentlight);
draw(t*scale3(3)*g,green,ArcArrows3(HookHead2,NoFill),currentlight);
draw(t*scale3(6)*g,red,Arrows3(DefaultHead2(normal=Z)),currentlight);
+
+transform3 t=shift(invert(6S,O));
+
+draw(t*g,blue,Arrow3(TeXHead3,position=Relative(0.5)),currentlight);
+draw(t*scale3(3)*g,purple,Arrow3(HookHead3,position=Relative(0.5)),
+ currentlight);
+draw(t*scale3(6)*g,red,Arrow3(DefaultHead3,position=Relative(0.5)),
+ currentlight);
+
+transform3 t=shift(invert(9S,O));
+
+draw(t*g,blue,Arrow3(TeXHead2,position=Relative(0.5)),currentlight);
+draw(t*scale3(3)*g,green,Arrow3(HookHead2,position=Relative(0.5),NoFill),
+ currentlight);
+draw(t*scale3(6)*g,red,Arrow3(DefaultHead2(normal=Z),position=Relative(0.5)),
+ currentlight);
diff --git a/Build/source/utils/asymptote/examples/extrudedcontour.asy b/Build/source/utils/asymptote/examples/extrudedcontour.asy
index dabd56b9298..29b12b5c387 100644
--- a/Build/source/utils/asymptote/examples/extrudedcontour.asy
+++ b/Build/source/utils/asymptote/examples/extrudedcontour.asy
@@ -11,16 +11,15 @@ real b=4;
real f(pair z) {return (z.x+z.y)/(2+cos(z.x)*sin(z.y));}
guide[][] g=contour(f,(-10,-10),(10,10),new real[]{8},150);
-render render=render(merge=true);
for(guide p:g[0]){
- draw(extrude(p,8Z),palered,render);
- draw(path3(p),red+2pt,render);
+ draw(extrude(p,8Z),palered);
+ draw(path3(p),red+2pt);
}
-draw(lift(f,g),red+2pt,render);
+draw(lift(f,g),red+2pt);
surface s=surface(f,(0,0),(10,10),20,Spline);
s.colors(palette(s.map(zpart),Rainbow()+opacity(0.5)));
-draw(s,render);
+draw(s);
axes3("$x$","$y$","$z$",Arrow3);
diff --git a/Build/source/utils/asymptote/examples/pathintersectsurface.asy b/Build/source/utils/asymptote/examples/pathintersectsurface.asy
index b69b0b859a5..73a78460e04 100644
--- a/Build/source/utils/asymptote/examples/pathintersectsurface.asy
+++ b/Build/source/utils/asymptote/examples/pathintersectsurface.asy
@@ -5,7 +5,7 @@ currentprojection=perspective(-5,-4,2);
path3 g=randompath3(10);
-draw(g,red+thin());
+draw(g,red);
triple[][] P={
{(0,0,0),(1,0,0),(1,0,0),(2,0,0)},
diff --git a/Build/source/utils/asymptote/examples/tiling.asy b/Build/source/utils/asymptote/examples/tiling.asy
new file mode 100644
index 00000000000..ed817b2a637
--- /dev/null
+++ b/Build/source/utils/asymptote/examples/tiling.asy
@@ -0,0 +1,7 @@
+size(0,150);
+import patterns;
+
+add("checker",checker(blue));
+
+filldraw(unitcircle,pattern("checker"));
+