diff options
author | Norbert Preining <norbert@preining.info> | 2019-10-21 03:00:45 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-10-21 03:00:45 +0000 |
commit | 7da4243862494d1fc7478956362f4da6d80f4f7e (patch) | |
tree | 30922972d98c2056ecbed0a1c43b3b3a3758bf58 /graphics/asymptote/examples | |
parent | 8fa38617045e3aa88b163fdc2fd683d72559b6d5 (diff) |
CTAN sync 201910210300
Diffstat (limited to 'graphics/asymptote/examples')
-rw-r--r-- | graphics/asymptote/examples/arrows3.asy | 19 | ||||
-rw-r--r-- | graphics/asymptote/examples/extrudedcontour.asy | 9 | ||||
-rw-r--r-- | graphics/asymptote/examples/pathintersectsurface.asy | 2 | ||||
-rw-r--r-- | graphics/asymptote/examples/tiling.asy | 7 |
4 files changed, 30 insertions, 7 deletions
diff --git a/graphics/asymptote/examples/arrows3.asy b/graphics/asymptote/examples/arrows3.asy index 06b986ef5f..b71c08406a 100644 --- a/graphics/asymptote/examples/arrows3.asy +++ b/graphics/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/graphics/asymptote/examples/extrudedcontour.asy b/graphics/asymptote/examples/extrudedcontour.asy index dabd56b929..29b12b5c38 100644 --- a/graphics/asymptote/examples/extrudedcontour.asy +++ b/graphics/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/graphics/asymptote/examples/pathintersectsurface.asy b/graphics/asymptote/examples/pathintersectsurface.asy index b69b0b859a..73a78460e0 100644 --- a/graphics/asymptote/examples/pathintersectsurface.asy +++ b/graphics/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/graphics/asymptote/examples/tiling.asy b/graphics/asymptote/examples/tiling.asy new file mode 100644 index 0000000000..ed817b2a63 --- /dev/null +++ b/graphics/asymptote/examples/tiling.asy @@ -0,0 +1,7 @@ +size(0,150); +import patterns; + +add("checker",checker(blue)); + +filldraw(unitcircle,pattern("checker")); + |