From 5d5f239204f5c0d1f7573c9ebc64b5ad1ae75b49 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Fri, 21 Jan 2022 03:01:16 +0000 Subject: CTAN sync 202201210301 --- graphics/asymptote/examples/twoSpheres.asy | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 graphics/asymptote/examples/twoSpheres.asy (limited to 'graphics/asymptote/examples') diff --git a/graphics/asymptote/examples/twoSpheres.asy b/graphics/asymptote/examples/twoSpheres.asy new file mode 100644 index 0000000000..c043ae3731 --- /dev/null +++ b/graphics/asymptote/examples/twoSpheres.asy @@ -0,0 +1,17 @@ +import three; +import palette; + +size(20cm); + +currentprojection=orthographic(1,1,1); + +draw(box((-2,-2,-1),(2,2,1))); + +draw(shift(-Z)*surface(box((-2,-2),(2,2))),blue); +draw(shift(Z)*surface(box((-2,-2),(2,2))),orange+opacity(0.5)); + +surface s=unitsphere; +s.colors(palette(s.map(zpart),Gradient(green+opacity(0.6),white, + green+opacity(0.6)))); +draw(shift(0.5X+0.5Y)*s); +draw(shift(-0.5X-0.5Y)*s); -- cgit v1.2.3