diff options
Diffstat (limited to 'Build/source/utils/asymptote/examples/elevation.asy')
-rw-r--r-- | Build/source/utils/asymptote/examples/elevation.asy | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/examples/elevation.asy b/Build/source/utils/asymptote/examples/elevation.asy new file mode 100644 index 00000000000..4e4579d98a9 --- /dev/null +++ b/Build/source/utils/asymptote/examples/elevation.asy @@ -0,0 +1,15 @@ +import graph3; +import grid3; +import palette; + +currentprojection=orthographic(0.8,1,1); + +size(400,300,IgnoreAspect); + +real f(pair z) {return cos(2*pi*z.x)*sin(2*pi*z.y);} + +surface s=surface(f,(-1/2,-1/2),(1/2,1/2),50,Spline); + +draw(s,mean(palette(s.map(zpart),Rainbow())),black); + +grid3(XYZgrid); |